Loading...
 
Features / Usability

Features / Usability


Assigning a menu to a category

posts: 2
I would like to create a site with several sections (since TikiWiki is able to assign different content to certain categories, I think the best way is to use this feature). Furthermore I would like to display a special individual menu for each category. Unfortunately I did not find a way to do this. Is there somehow a way to assign a menu to a category (maybe using PHP)? If not, is there a way to assign a module to a category?

posts: 1092

You can do something in php in tiki-modules.php...
I am not sure to understand how you identify the category? Is it a tiki category? is it based on url? ....
But imagine you add in admin -> modules an optional parameter category=xx for a module. In tiki-modules.php, you can test $module_params%22category%22 for each module and set $pass="n" is the module can't be displayed....
In 1.9 cvs, you can see a $module_params%22langs%22 that filters a module on the current language
Good luck
sylvie


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