View more context

 

muskie9

I've been playing with forTemplate... also tried doing a multiform step template calling a method that returns the image... then do $MyMethod.Fill(250,250).URL but no luck

jonom

Does it work if you don't use a custom class for Image? Can you just decorate Image with a DataExtension instead of swapping out the class?

muskie9

the custom image class is needed for the watermark... I think it references a different/altered image backend... I have a proof of concept working with a non-multiform frontend form, and when saving the object in the cms the cms preview thumbs show up fine w/the watermark... it's strange... gonna keep digging

Jae (SilbinaryWolf)

Is there any reason why 'DataList::filterByCallback' isn't defferred to when you iterate over it? I mean to me that makes more sense and would actually be useful.

muskie9

silbinarywolf what do you mean? $myDataList = MyObject::get()->fitlerByCallback($myCallback); is iterated over setting $myDataList as an ArrayList, so the what is iterated over after that has already been filtered by the callback

Jae (SilbinaryWolf)

I mean all ->filter() functions you use on a DataList doesn't actually happen until you call ->toArray() or iterate over it

Jae (SilbinaryWolf)

I'd rather filterByCallback store an array of callbacks to call during toArray()