I would like to use the {NAV_TABLE_COLUMN:1} replacement tag so that I can have subcategories displayed when you click on each section. The {NAV_TABLE_COLUMN:1} replacement tag will produce a menu of each subsection of ID 1, but how do can I make this generate according to the section you're in?
Example:
About us
- Privacy
- Conditions
- Contact
Services
- Design
- Production
- Testing
When you're looking at any page within the About us section, I'd like the nav to show all 3 subsections on the left. Likewise when in Services, I'd like each of the 3 Services subsections shown.
Create a different template for each section, so one for About Us and one for Services. The templates only differ in the number in {NAV_TABLE_COLUMN:1}. Assign each category their own template.
"This integer can be found by rolling your cursor over the site structure icons in the admin-site structure section. Using this parameter, menus are generated from this site structure level and below."
Hi Oliver....Nice feature which I had never looked into. So basically, if you don't mind doing a little hard-coding, then putting expression in a given page template:
from oliver.
Now lets say my site structure looks like this:
a
.aa
.ab
.ac b
.ba
.bb
.bc
a and b are used by {NAV_ROW} and .aa .ab and so on are used by nav.php. Now when my left navi is like this:
.aa
.ab
.ac
and then i click on .aa or .ab or so, my left navigation disapears... but i would like that it stays. How could i fix this problem? is it even possible by using sample_ext_php/nav.php ? or must i do it by using NAV_TABLE_COLUMN:X}? (but i would like to do it with only one template)
Oliver Georgi wrote:check file in "sample_ext_php/nav.php".
There you can find a solution to get the ID of a parental structure - like when using a breadcrumb menu.
Then only 1 template for everything is neccessary (often).
Oliver
Hi
Ive created a graphics based navigation and used the nav.php example to make it dynamic as suggested by Oliver. It works fine. However is there any way of grouping some cases - if you would like several categories to echo the same line of code rather than having to duplicate the same lines of code?
This will cause the program to find the topmost menu before the index menu (0) in any case. This will always show the full left menu, regardless of what level you descend into.