Page 1 of 1

Mantis ignores the Dokuwiki Start page name directive

Posted: 22 Mar 2008, 21:54
by leblancma
Dokuwiki has a directive which specifies the Start page name. On the dokuwiki side, the default in "dokuwiki.php" is

Code: Select all

$conf['start']       = 'start';           //name of start page
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.

Code: Select all

	# Wiki namespace to be used as root for all pages relating to this mantis installation.
	$g_wiki_root_namespace = 'mantis';
However, Mantis does not retrieve the Dokuwiki start page. See the following code at lines 62 - 74 in wiki_docuwiki_api.php

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;
		}
	}
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

Code: Select all

$g_wiki_start_page = 'start';
for us to override.

Re: Mantis ignores the Dokuwiki Start page name directive

Posted: 27 Mar 2008, 04:59
by vboctor
Please report a bug in the bug tracker to capture this issue. You can refer to this thread from there.

Re: Mantis ignores the Dokuwiki Start page name directive

Posted: 27 Mar 2008, 13:42
by leblancma
Thanks Victor for the acknowledgement.

Bugtracker issue 9014 reported

http://www.mantisbt.org/bugs/view.php?id=9014