3
Thanks for the link. It has certainly helped me a little.
However, I may need a little further help. I can now successfully create different themes for different modules.
What I am trying to do is create a different theme for one page within a module. i.e. Theme1 is used for all of the site. When someone opens a link (i.e.
http://mysite.com/modules/amodule/thispage.php) I want only this page to be displayed using
theme2 and not any other pages for the module.
Here is part of the code for changing the theme for a particular module (taken from the link):
<{php}>
$mod = $GLOBALS['xoopsModule'];
$dirname = (isset($mod) ? $mod->getVar('dirname') :'system');
if ($dirname == 'amodule') {
$theme='theme2';
} else {
$theme='theme1';
}
I am unsure how to change this code to enable it to run for a specific page within a module.
Any ideas or help would be appreciated. Thanks in advance.