My suggestion is to put the following in your dmHTML display page template:
<div id="content_news">
<h3>News</h3>
<con:container ...>
</div>
Then in the displayTeaser remove the div and just have something like
<cfoutput>
<strong>#DateFormat(stObj.startdate, 'dd MMMM yyyy')#</strong> -
#stObj.title# [<a
href="#application.url.conjurer#?objectid=#stObj.objectID#">view</a>]
</cfoutput>
The loop will then automatically put all of the news content inside your
content_news div.
_____
Jake Churchill
CF Webtools
11204 Davenport, Ste. 200b
Omaha, NE 68154
http://www.cfwebtools.com
402-408-3733 x103
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of John Beynon
Sent: Wednesday, April 18, 2007 6:40 AM
To: [email protected]
Subject: [farcry-dev] building display rules
Completely new to Farcry but liking what i'm seeing so far, so excuse
the probably trivial questions.
I've but some news items into the new dynamic content and have create
a page with a container on.
Now what i'm trying to return is something like;
<div id="content_news">
<h3>News</h3>
<p><strong>06 Mar 2007</strong> - 2007 Scottish Nationals [<a
href="index.cfm?pageid=50">view</a>]</p>
<p><strong>06 Mar 2007</strong> - Gumley Arrangements [<a
href="index.cfm?pageid=49">view</a>]</p>
<p><strong>02 Feb 2007</strong> - Season Opener - 31st March [<a
href="index.cfm?pageid=48">view</a>]</p>
</div>
So displaying a div with 3 news items in it, but what i'm seeing is
that the rule i'm creating is infact creating 3 divs (as above) but a
single news item in each, which is not what i'm after.
>From my understanding it seems that the rule is being run per news
item - which makes sense...I've done some digging, is my only option
in this instance to call against the dmNews type itself to retrieve
via getmultipleviaquery() method and limit it to 3 rows returned for
example?
thanks,
john.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---