Oh, and ‘scuse the missing information :P

 

My rule gets all news articles with a category matching that of the page, determined at execution-time – it’s a good place to start looking, if your section structure will accommodate it.

 

~V

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Bauer
Sent: Tuesday, 4 October 2005 11:31 PM
To: FarCry Developers
Subject: [farcry-dev] Re: "default" records displaying in a custom rule

 

It’s late. ‘Scuse the brevity.

 

A custom rule would make sense, more control over merging category specific and generic results in the one execution.

 

Either copying or extending (and then copying at least some of :P) ruleNews.cfc is a good place to start. It’s also a good way to get accustomed to the way a display rule works. The core data selection and rendering is already there, you just need to make some extensions to the selection part.

 

I’m sure I’ve got a rule that does similar thing, give me a hoi if you get stuck.

 

Chris

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Mercer
Sent: Tuesday, 4 October 2005 6:02 PM
To: FarCry Developers
Subject: [farcry-dev] Re: "default" records displaying in a custom rule

 

for naming your containers by section you need a way to detirmine what is a section programatically. I have a site the the first nodes under home relate to a section - so I use the node alias name as the container name. For each lower level node, you need to finde the parent and get the alias name.


The same site also as tile adverts and they only wanted a max of 4, and if a lower level did not have enough, it was to get the adv from higher up the chain. Being fixed size graphics, i just calculated the height of 4 images, mad a div that big and used style to stop overflowing. I then had two rules in the contailer, both returning 4 adverts. If it worked out that there were more than 4, the others would not be seen. Bit of a wast of band width - but it was for an intranet.

A better way would be to create a custom rule.

On 9/20/05, Kay Smoljak <[EMAIL PROTECTED]> wrote:

I'm working on a site with a number of sections. I'd like the sidebar
container in each section to display either news items specific to
that section (i.e., the news item has been assigned to a specific
category), or general news items if no specific ones are available. In
addition, I'd like to pad out the container with general news items if
for example there was only one section-specific news item and the
container allowed for 5 news items.

I'm a little hazy on the logic here - but I'm assuming I need to write
it into a custom rule? Has anyone done anything like this before that
they could share?

Thanks!

--
Kay Smoljak
http://kay.zombiecoder.com/

---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/


--- You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

---
You are currently subscribed to farcry-dev as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to