I have a custom type I'd like to display without adding too much logic to
my webskin HTML templates. I'd like to use a container to output the
custom type. How can I make a custom rule that outputs the custom type? Does the custom rule need a display method that invokes the custom type
cfc? What are the best practices for this?
Just have a look at one of the simpler rules; perhaps Fact rule? All the generic rules are a little complicated because we try and support so many different platforms etc.
But you may not need to build a rule at all. Have you looked at the "Hand Picked Rule"? -- it allows you to select nearly any object type and display. To get a custom type to display using this rule... you need the following:
- some metadata in the component CFC like this snippet from dmNews (notice the bSchedule=1)
<cfcomponent extends="farcry.farcry_core.packages.farcry.genericAdmin" displayname="News" hint="Dynamic news data" bSchedule="1">
- and a teaser display method. In the core rules these are denoted by being a template that starts with displayTeaser* For example, displayTeaser.cfm, displayTeaserEmbedded.cfm, displayTeaserVertical.cfm (whatever takes your fancy really).
-- 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
