Mantis ignores the Dokuwiki Start page name directive
Posted: 22 Mar 2008, 21:54
Dokuwiki has a directive which specifies the Start page name. On the dokuwiki side, the default in "dokuwiki.php" is
This can be overridden in the Dokuwiki configuration plugin, or else in file local.php in the dokuwiki/conf directory.
When setting up my installation, I changed my desired starting page to "mantis:bugtracker", and created a "bugtracker" wiki page in a namespace called "mantis". This agrees with the Mantis default root namespace as specified in config_defaults_inc.php.
However, Mantis does not retrieve the Dokuwiki start page. See the following code at lines 62 - 74 in wiki_docuwiki_api.php
Should not variable $t_home be set to whatever is in the dokuwiki configuration. If Mantis cannot retrieve it easily, then we need a new global variable for us to override.
Code: Select all
$conf['start'] = 'start'; //name of start page
When setting up my installation, I changed my desired starting page to "mantis:bugtracker", and created a "bugtracker" wiki page in a namespace called "mantis". This agrees with the Mantis default root namespace as specified in config_defaults_inc.php.
Code: Select all
# Wiki namespace to be used as root for all pages relating to this mantis installation.
$g_wiki_root_namespace = 'mantis';
Code: Select all
# ----------------------
# Gets the page id for the specified project. The project id can be ALL_PROJECTS
# The page id can then be converted to URL using wiki_dokuwiki_get_url_for_page_id().
function wiki_dokuwiki_get_page_id_for_project( $p_project_id ) {
$t_home = 'start';
if ( $p_project_id == ALL_PROJECTS ) {
return $t_home;
} else {
$t_project_name = project_get_name( $p_project_id );
return $t_project_name . ':' . $t_home;
}
}
Code: Select all
$g_wiki_start_page = 'start';