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/

Reply via email to