nur 2te ebene / second level only - navigation

Use GitHub to post feature requests for phpwcms.
Locked
usta
Posts: 146
Joined: Thu 18. Aug 2005, 19:17

nur 2te ebene / second level only - navigation

Post by usta »

na, ich frag einfach mal: wie kann ich eine Navigation einrichten, die wie {NAV_LIST_TOP} funktioniert, nur nicht die erste ebene ausgibt, sondern stets die 2.?
what do i have to do, in order to create a navigation, thats displaying only a certain level? just the way, {NAV_LIST_TOP} does, but instead for level #1, for -let's say- level #2?

also:
mit
- 01
---- 01_01
------ 01_01_01
------ 01_01_02
------ 01_01_03
---- 01_02
------ 01_02_01
------ 01_02_02
------ 01_02_03
---- 01_03
------ 01_03_01
------ 01_03_02
------ 01_03_03
macht {NAV_LIST_TOP} does:
01 - 02 - 03

ich will aber (egal, ob gerade 01 aktuell ist, oder 01_0x_0x)
but, what i, regardless of the active (sub-)level, want, is:
01_01 - 01_02 - 01_03

ich hab mir gedacht, das {NAV_LIST_TOP} ja schon weis, welche oberste acat_id gerade aktuell ist (im Bsp. 01).
Jedenfalls müsste man doch einfach in die datenbank zur tabelle phpwcms_articlecat gehen und gucken, welche oberste acat_id (und die obersten sind die, deren acat_struct = 0 ist) gerade aktuell ist um dann alle diejenigen acat_id's auszuwählen, deren acat_struct -Wert mit dem aktuellen, obersten acat_id -Wert übereinstimmen.
a possible way, how that could be done, that just occured to me should be: to go into the database of phpwcms - table: phpwcms_articlecat and select every entrys acat_id, that's acat_struct is equal to the acat_id of the current active top-level entry (and top-level are the ones, with acat_struct = 0).

puuuuh. aber wie zum Geier soll das gehen?
so, has anybody an idea for the according php-script?

:?
Keppn
Posts: 80
Joined: Wed 14. Jul 2004, 18:16

Post by Keppn »

Doesn't {NAV_LIST_TOP:2} work, where the integer is the sublevel of your menu?
usta
Posts: 146
Joined: Thu 18. Aug 2005, 19:17

Post by usta »

no: way to much fuss (lots of templates)
by the way: i solved it:
http://www.phpwcms.de/forum/viewtopic.php?t=8479
Locked