Navigation: same-level and below-levels only - NAV_LIST_ALL

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply
Nik2004
Posts: 132
Joined: Mon 9. Aug 2004, 14:31
Location: Athens,Greece

Navigation: same-level and below-levels only - NAV_LIST_ALL

Post by Nik2004 » Sat 14. Aug 2004, 12:58

Hi,

I would like to ask how I can display in a custom navigation menu all same-level and below-level subcategories of the currently displayed page. This has been discussed in http://www.phpwcms.de/forum/viewtopic.p ... 23&start=0 and http://www.phpwcms.de/forum/viewtopic.p ... 62&start=0 but no solution has been proposed to this exact issue.

For example, in a structure like:

+ Web Hosting
++ Business Lite
++ Business Standard
+++Gold
+++Silver
++ Business Plus
+ Application Hosting

...when in "Business Standard", the navigation should display:

Business Lite
Business Standard (in Bold)
+Gold
+Silver
Business Plus

Could anyone suggest an individual Replacement tag or a modification of {NAV_LIST_CURRENT} or {NAV_LIST_ALL}?

For example something like: {NAV_LIST_ALL:CatAlias:ShowSameLevel} where CatAlias specifies the level at which listing should start and ShowSameLevel (0/1) specifies whether the same-level categories (with CatAlias) will be listed or not. If CatAlias is left empty, listing should start at current level (automatically).

I have posted the above at: http://www.phpwcms.de/forum/viewtopic.php?t=3171 but I have had no replies.

Please help find a solution, either direct or a hack.

Post Reply