way to use articles for nav_list... ideas?

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply
rtilghman
Posts: 107
Joined: Tue 1. Mar 2005, 17:22

way to use articles for nav_list... ideas?

Post 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
lizu
Posts: 4
Joined: Wed 26. Oct 2005, 18:11
Location: Germany

Post by lizu »

{ARTICLE_LIST} is exactly what i am loking for?
Does someone know, how to do that?
Dave_LOgic
Posts: 51
Joined: Wed 10. Nov 2004, 21:48
Location: London

Post 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..
lizu
Posts: 4
Joined: Wed 26. Oct 2005, 18:11
Location: Germany

Post 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. :)
Post Reply