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
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?
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
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.
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
I mean all ->filter() functions you use on a DataList doesn't actually happen until you call ->toArray() or iterate over it
I'd rather filterByCallback store an array of callbacks to call during toArray()
that'd actually be useful
true, it builds the query when needed afaik