1
Is there a way to get the module name or module directory (just "news", "newbb", "polls", ecc) to use in Smarty so I can do something like:
<body id="<${MODULE_NAME}>">....
or
<{if $MODULE_NAME == "newbb"}>....<{/if}>
I tried with $xoops_pagetitle but it contains unpredictable contents (such as news title or forum threads title).
Another way would be to check for $xoops_requesturi but the template becomes server-dependent and it is not said that the requesturi is always assigned.
I was thinking about the following solution:
<body id="<{$xoops_pagetitle|truncate:5:""}>">...
or something like that to get the first 5 characters of the page title, but it would be nice to have the variablized module name.
Thanks