Thanks so much for your reply. I was able to get the output I wanted, but in the execute method of my custom rule, NOT by calling an object type. I code OO but I'm not sure what I'm doing my creating a new object at the end of the execute method.
<cfscript> o = createObject("component", "#application.custompackagepath#.types.NTPSidebar"); o.getDisplay(sideAr, stObj.displayMethod); </cfscript>
I'd say just as a note to everyone -- you should *not* be outputting display in the excute handler of a publishing rule. This will work at the moment, but it is *not* good practice.
You should be populating the aInvocations array and letting the container logic output the content. Why?
Well lots of reasons.. but I'll just look at two practical examples.
1. If you want to run multiple rules, and reorder them, outputting HTML in the excute handler will bypass this ordering, and make a mess of things.
2. You might want in the future to preprocess the aInvocations array to de-dupe or something if you had rules that might pull the same object twice. Imagine a dedupe rule which you schedule last.
-- 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
