2
it's easy
![](https://xoops.org/uploads/smil3dbd4d6422f04.gif)
if you don't want to make change in php code you can use smarty variable
<{$xoops_pagetitle}> (why ? - look below) it contains : name of module or if page slogan (if module isn't active [like home page without default module])
--------
coding php
look at header.php at line 112:
Quote:
[112] if (isset($xoopsModule)) {
// set page title
$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name'));
(...)
[120] } else {
$xoopsTpl->assign('xoops_pagetitle', $xoopsConfig['slogan']);
(...)
if is set any module variable 'xoops_pagetitle' will be a name of actually module else as I said before (line 120) will be a slogan.
--
but if you don't want to have slogan you can simply add the code, e.g. before line 112:
Quote:
$xoopsTpl->assign('xoops_modulename', $xoopsModule->getVar('name'));
and in smarty template use var <{$xoops_modulename}>
I don't know if it is necessary to check if $xoopsModule is set...(maybe yes.. and sometimes you will got a blank page)
so you can add 2 lines of code instead one
![](https://xoops.org/uploads/smil42e7a65fee35d.gif)
Quote:
112] if (isset($xoopsModule)) {
// set page title
[114] $xoopsTpl->assign('xoops_modulename', $xoopsModule->getVar('name'));
$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name'));
(...)
[121] } else {
$xoopsTpl->assign('xoops_modulename', 'default');
$xoopsTpl->assign('xoops_pagetitle', $xoopsConfig['slogan']);
(...)