Re: Re: conditional commands in modules / wiki
>
>Does this make sense? Am I conveying what I'm trying to do?
>
You basically want a different menu to appear, depending on which page is currently being viewed, right?
Try creating a module with:
Copy to clipboard
{if $page eq 'Engineering'} {menu id=XXXX} {elseif $page eq 'Marketing'} {menu id=YYYY} {else} {menu id=ZZZZ} {if}
You'll need to create 3 menus:
- XXXX — The menu to appear when on the Engineering page.
- YYYY — The menu to appear when on the Marketing page.
- ZZZZ — The default menu to appear everywhere else.
This, of course, assumes that your page names are Marketing and Engineering.
Not the most elegant, but it should work.
HTH,
-Rick
Need more help? Try TikiWiki for Dummies Smarties or read my Tiki Blog or visit my UserPage