I am trying to display a menu based on a variable.
If menu=Projects, the Projects menu would display.
If menu=Press, the Press menu would display.
If menu=Contacts, the Contacts menu would display.
Here is the html that obviously does not work:
[var.menu;if [val]='Projects']
[onload;tplvars;submenu_link1=Crow Residence]
[onload;tplvars;submenu_link2=Oceanfront Residence]
[onload;tplvars;submenu_link3=Lovitt Residence]
<a href="project01-01.php">[var..tplvars.submenu_link1]</a><br>
<a href="project02-01.php">[var..tplvars.submenu_link2]</a><br>
<a href="project03-01.php">[var..tplvars.submenu_link2]</a><br>
[/if]
[var.menu;if [val]='Press']
[onload;tplvars;submenu_link1=Newspaper]
[onload;tplvars;submenu_link2=Television]
[onload;tplvars;submenu_link3=Radio]
<a href="press-01.php">[var..tplvars.submenu_link1]</a><br>
<a href="press-02.php">[var..tplvars.submenu_link2]</a><br>
<a href="press-03.php">[var..tplvars.submenu_link3]</a><br>
[/if]
[var.menu;if [val]='Contact']
[onload;tplvars;submenu_link1=About Us]
[onload;tplvars;submenu_link2=Address]
[onload;tplvars;submenu_link3=Email]
<a href="contact-01.php">[var..tplvars.submenu_link1]</a><br>
<a href="contact-02.php">[var..tplvars.submenu_link2]</a><br>
<a href="contact-03.php">[var..tplvars.submenu_link3]</a><br>
[/if]
|