I'm fairly new to farcry, please tell me if this message is misdirected.
This is the right place for all things FarCry development!
..snip8<...
Obviously I can append/prepend the dashed line on the layout on the teaser output, however then it'll appear something like
-----------
News Item 1
-----------
News Item 2
-----------
News Item 3
I guess the real question is, is there any way to control the looping of news items in this rule (to check for the first or last item), or am I required to modify ruleNews.cfc (or create a new custom rule)?
The only options you have are as follows:
- modify the news rule (as this is a core rule, best to replicate the rule and make modifications to the new rule)
- build a special dmNews teaser that can detect when it is at the bottom of a rule
The latter is probably not that tough to do. The rule aInvocations array is built up in the request scope (dump the scope on the page to find it). All you need to do is check for its existence, check where in the array you are ie. am I last, then render slightly different HTML.
-- 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]
