mekineer
I would like the page titles, the ones that show up in the tab of a web browser, to be assigned by the first heading of the page. I would also like IndexMenu to show the menu using the namespaces. If I enable the UseHeading option, then IndexMenu shows the title instead of the namespace.
Is this possible for IndexMenu to show the namespace despite the UseHeading option, and how? I try to read the IndexMenu instructions, and I can't understand anything.
mekineer
I'm trying to change the code for the IndexMenu plugin.
So far, in syntax/indexmenu.php, I have removed the following code:
if($conf['useheading'] == 1 || $conf['useheading'] === 'navigation') {
$title = p_get_first_heading($id, FALSE);
}
And have shortened the following function:
private function _getTitle($ns, $headpage, &$hns) {
global $conf;
$hns = false;
$title = noNS($ns);
return $title;
}
For me, IndexMenu continues as if I had not made any changes... the useheading option still results in the title being used instead of the namespace.
------------
For Dokuwiki, I tried removing the following code in inc/common.php:
$title = p_get_first_heading($ID, METADATA_RENDER_USING_SIMPLE_CACHE);
Removed from the following section of code:
// page names
$name = noNSorNS($ID);
if(useHeading('navigation')) {
// get page title
$title = p_get_first_heading($ID, METADATA_RENDER_USING_SIMPLE_CACHE);
if($title) {
$name = $title;
}
}
However, still no change in behavior.