Aw: Module specific to wikipages or structures or categories
Hi hk!
We solved a similar problem with modules.tpl modification. In order to display a different module for different URL's we modified the "../templates/module.tpl" template and enclosed the content of the template in an if clause:
{if $module_params.url eq $smarty.request.SERVER_NAME or !isset($module_params.url) }
.... CONTENT ....
{/if}
So we can pass a variable "url" with the domain name to the module.
For your case you could use
{if $module_params.page eq $smarty.get.page or !isset($smarty.get.page) }
.... CONTENT ....
{/if}
for the module template. After that, create modules for each site and pass the variable page=... to each new module.
Cheers,
Eduard
> Hello,
>
> At the moment, we have same modules appearing all over the site.
>
> What i would like to see is that the module should be configurable so that they appear only on a particular wikipage or a group of wikipages as defined in structure or categories or maybe menu..
>
> Lets say, i have a menu item
>
> 1 Home Page
> 1.1 about us
> 1.2 contact us
>
> 2 Services
> 2.1 Service one
> 2.2 service two
>
> I would like to configure a module in such a way where i can specify that it should only appear on a wiki page (say only home page) then another module that should only appear on (about us and contact us page) and then another one for the services.
>
> I am not sure how this could be done but i am guessing if someone could probably relate modules to Menus or Categories or structures a condition could be applied for module display...
>
> anyone has a better idea, please share..
>
> thanks
> hk