Page 1 of 1

way to use articles for nav_list... ideas?

Posted: Tue 6. Sep 2005, 00:35
by rtilghman
Okay, so in most of the structural levels of my site I use the NAV_LIST reptag to generate local navigation from a certain level down. However, in certain other structural levels of my site I've got multiple articles that make up the "location". The idea here is that I need one of two things:

1. A way to generate a NAV_LIST from the categories and the articles of a navigable pathway. Specifically I'd like to be able to have the bottom/last level list all the articles in that last directory (with specific exceptions, by article ID, like with TEASER_EX)

2. A way to generate a NAV_LIST for Articles - a la, ARTICLE_LIST - to generate a NAV_LIST for the articles from a given category. The difference over a standard Article list is that this would give me the ability to set active classes on "live" nav elements so they can be styled.

Is there a way to get close to this with existing functionality? Anyone have an idea of how I might go about modifying something to do this?

I went in and tried to create something using the NAV_LIST code, but it seems slightly more convoluted than the code for a normal RT. Specifically I had trouble customizing the build_list function to target articles.

Any help is appreciated.

Thanks,
Rick

Posted: Wed 26. Oct 2005, 20:46
by lizu
{ARTICLE_LIST} is exactly what i am loking for?
Does someone know, how to do that?

Posted: Thu 27. Oct 2005, 09:59
by Dave_LOgic
lizu wrote:{ARTICLE_LIST} is exactly what i am loking for?
Does someone know, how to do that?
You could use the {SHOW_CONTENT} RT and / or {NEWS FLASH} content types but this means you have to manually add artticles...Works for me though..

Posted: Thu 27. Oct 2005, 10:25
by lizu
i'll use the site structure.
Because it's for my fathers website, I am not sure if he like to edit the site structure by himself. :)