Loading...
 
Features / Usability

Features / Usability


Re: Re: conditional commands in modules / wiki

posts: 3665 United States

>
>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

There are no comments at this time.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting