WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Display second level (drop-down) links independent of show_menu2
sky writer:
I know this, but I want the children of one parent shown on all pages. Other parents have children, and I don't want those shown on all pages.
So, my understanding and experience is that that SM2_ROOT+1 will show the children of all parent pages. I do not want that.
mdemaree99:
What have you tried and results?
Can't reiterate more on checking out the examples and readme file.
Very specific examples and code that make this really easy.
specchild (examples page)
Children of a specific page (page = Cogs)
--- Code: ---show_menu2(0, 9, SM2_ALL, SM2_ALL);
--- End code ---
[page_id of Cogs is 9]
Specific page, only one level deep: (readme file)
--- Code: ---show_menu2(1, 79, SM2_START+1, SM2_ALL|SM2_PRETTY);
--- End code ---
Option is use droplets....
- write a droplet that lists the links and put droplet on each page.
- use showmenu to just list the pages you need. (yes. if could do here.. template should work as well, but may be easier since the page is static)
Use the [[showsection?section=75]] droplet on each page
Since page is static the showmenu will be the same each time.
Possibly able to use a droplet inside a template, or include a page.
I haven't read about putting droplets in templates, but sounds feasible.
(worst case.. use code from the showsection droplet inside the template)
Navigation
[0] Message Index
[*] Previous page
Go to full version