PHPLayers: Using a subset of content to do a menu
Posted: Mon Mar 14, 2005 11:19 pm
If you have a hierarchie of content like this:
And you want a menu (horizontal by example) with main menu like this:
use this code:
Look the point (.) after 1 in start_element !!! if you forgot it you will get the menu:
with content 1.x as popup-menu but not main menu
usefull if you want a multi langual site, you build 2 hirarchie of content, one "en" and another "fr" and you do 2 templates one for "en" and one for "fr" with just the start_element different.
I hope it's not a bug
Code: Select all
1. Content 1
1.1 Content 1.1
1.1.1 Content 1.1.1
1.1.2 Content 1.1.2
1.1.3 Content 1.1.3
1.2 Content 1.2
1.3 Content 1.3
2. Content 2
2.1 Content 2.1
2.1.1 Content 2.1.1
2.1.2 Content 2.1.2
2.1.3 Content 2.1.3
2.2 Content 2.2
2.3 Content 2.3
Code: Select all
Content 1.1 Content 1.2 Content 1.3
Code: Select all
{cms_module module='phplayers' horizontal="1" start_element="1."}
Code: Select all
Content 1
usefull if you want a multi langual site, you build 2 hirarchie of content, one "en" and another "fr" and you do 2 templates one for "en" and one for "fr" with just the start_element different.
I hope it's not a bug