7
janmetpet:
Here's a quick and dirty solution to your request to include category/term in the browser title.
XOOPS' Smarty implementation includes a specific variable to put there some of the content of the browser title. This variable is called
xoops_pagetitle. All you need to do is to retrieve whatever variables and to make the appropriate assignment in the relevant page.
Since this sounds too academic, this is what it means:
1. Open file
entry.php.
2. In some of the last lines, before ending the file, add the following (I'll put it in several lines, but of course you write it in just one):
$xoopsTpl->assign('xoops_pagetitle',
$myts->htmlSpecialChars($xoopsModule->name()).' - '.
$thisterm['catname'].' - '.
$thisterm['term']);
Assuming you have a site called Abracadabra, assuming you renamed your Wordbook module to WitchWords, assuming your first category is called Spells, assuming your term is called Eternal love, and assuming you're using Mozilla Firefox as your browser, then you'd see in the browser title something like:
Abracadabra - WitchWords - Spells - Eternal love - Mozilla Firefox
Being things as they are, you have no way to change the first and the last word. The other three are optional, and they are, of course, the ones included in the line you just added.
That's about it. Hope it works ok.
Cheers.