Thanks Geoff,
The latter one was what I was hoping to do but wasn't sure how to go about
it
I just added something along these lines to my dmNews teaser:
<cfif Request.aInvocations[1].objectid neq stObj.objectid>
<hr />
</cfif>
<b>#stObj.title#</b><br />
#stObj.Teaser#
Alternatively, you could count the size of Request.aInvocations and check
the current object id isn't the last item and then output the <hr /> after
the teaser output.
Hope this helps somebody!
Cheers
--
Quentin Zervaas
Email: [EMAIL PROTECTED]
----- Original Message -----
From: "Geoff Bowers" <[EMAIL PROTECTED]>
Newsgroups: farcry-dev
To: "FarCry Developers" <[EMAIL PROTECTED]>
Sent: Wednesday, July 09, 2003 11:52 AM
Subject: [farcry-dev] Re: news rule
> Quentin Zervaas wrote:
> > 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]
---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]