Loading...
 
Features / Usability

Features / Usability


Configure Module per section?

posts: 3665 United States

I know that you can configure the left/right/top/bottom on a per-section basis. Is there a way to control a module on a per-section basis? Is there a parameter, when adding a module, to make it visible only for specific sections?

Tx,

>
-Rick
Now Available: TikiWiki for Dummies Smarties — A beginner's guide to using ))TikiWiki((.

posts: 4656 Japan

This is a kind of "after-the-fact" method, but you can use CSS to control the visibility of a module, something like

body.tiki_cms box-shoutbox { display: none }

Tiki assigns a class to the body tag per section, and each module box has its own class. Use these along with display:none to turn off the module in a section. It'd be nice to filter out the module earlier in the page production process, for the sake of efficiency, like with module parameters, but I don't know it that's possible in the current versions.

-- Gary

posts: 3665 United States

> This is a kind of "after-the-fact" method, but you can use CSS to control the visibility of a module, something like

>
body.tiki_cms box-shoutbox { display: none }

> Tiki assigns a class to the body tag per section, and each module box has its own class. Use these along with display:none to turn off the module in a section. It'd be nice to filter out the module earlier in the page production process, for the sake of efficiency, like with module parameters, but I don't know it that's possible in the current versions.
>
> — Gary

Good idea Gary... I hadn't thought of using CSS. (Initially, I just hardcoded it into the TIKI.TPL.) I think I'll add this an an enhancement request.

-Rick
Now Available: TikiWiki for Dummies Smarties — A beginner's guide to using ))TikiWiki((.


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