4
Other solution (shorter): you can add this php block at the top of your template.
<{php}>
$mod = $GLOBALS['xoopsModule'];
$modvar = array( 'dirname' => (isset($mod) ? $mod->getVar('dirname') : 'system') );
$GLOBALS['xoopsTpl']->assign( 'xoops_module', $modvar );
<{/php}>
Then you can get the name of the current module using:
<{$xoops_module.dirname}>
And last, if you want to insert a module dependent css, you should create
modules/modulename/style.css within your theme folder, and insert it using something like this:
<link rel="stylesheet" href="<{xoops_imageurl}>modules/<{$xoops_module.dirname}>/style.css" />
The good point is that this simulates the next release behavior, so doing like this you'll just have to remove the php block and the link tag from your theme to make it work with the new version.
The bad point is that this
might change before the final version (I don't think so actually,
but...)
Skalpa.>