1
Hello I was wondering how to utilise the $xoops_module_header statement properly in the main theme.html file.
I am using the news module and would like that module to display a simple piece of html (shown below) in the head of that module's pages, but rather than put that HTML in the main theme.html file and have it show up in all pages, I am seeking to utilise the header.php of that module.
So far what I've done is made that /modules/news/header.php like this:
include_once '../../mainfile.php';
echo ""; //this is the new line to be included at the top of each news module page
Yet when I turn the module's cache off, that HTML Javascript reference doesn't show up in the generated page code, and I am expecting it given the main theme.html template has the following code in it:
<{$xoops_module_header}>
What am I doing wrong? Does my news module need to be updated? I have tried to work this through but have not been able to so far, please help.