Loading...
 
Skip to main content

Features / Usability


Configure Module per section?

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 SmartiesQuestion — A beginner's guide to using ))TikiWiki((.

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

> 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 SmartiesQuestion — A beginner's guide to using ))TikiWiki((.