I need the ability to pass a 'class' param to a display method from the execute method of a rule.
You could also add class information by wrapping the container or rule with a DIV and assigning a class. Your style sheet could be set to detect specific nested classes and behave accordingly.. so how to do that?
I need to wrap an entire rule's output in some html (before and after) but only if the rule outputs something (size(aInvocations) > 0). Maybe we could have display methods for rules?
No reason why you couldn't have multiple displays invoked by the execute method. Containers only understand UPDATE and EXECUTE but the rule itself could make reference to any number of display methods. In fact, you could even have different update handlers depending on the user.
Along the same idea, I need to wrap a entire container's output in some html (before and after) but only if the container outputs content.
Maybe this could be done just adding some params to the container tag or maybe something more robust is needed?
There are already pre and post HTML attributes for the container tag -- these shouldn't output anything if the aInvocations array is empty.
I need each rule's output in its own struct in aInvocations so as to distinguish the each rule's objects in aInvocations.
How would you use this?
Also container filters could be quite powerful. They could be used to impelement something along the lines of removeDupes() before any rule's display method is called. Not sure if you need user-level assignment of filters or just have them defined in the template.
Ahah yes. De-duping or reordering are common requests theoretically but hard to get users to use containers at all let alone understand rules that act on container output only. But of course these are already possible in the current framework :)
At the mo I have to stick with outputting from execute()
How so? Why does your scenario not work in the current framework?
-- geoff http://www.daemon.com.au/
--- You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
