Mantis ignores the Dokuwiki Start page name directive

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
leblancma
Posts: 37
Joined: 09 Jan 2006, 15:22
Location: Canada
Contact:

Mantis ignores the Dokuwiki Start page name directive

Post 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.
Regards,

Maurice
vboctor
Site Admin
Posts: 1293
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Re: Mantis ignores the Dokuwiki Start page name directive

Post by vboctor »

Please report a bug in the bug tracker to capture this issue. You can refer to this thread from there.
Migrate your MantisBT to the MantisHub Cloud
leblancma
Posts: 37
Joined: 09 Jan 2006, 15:22
Location: Canada
Contact:

Re: Mantis ignores the Dokuwiki Start page name directive

Post by leblancma »

Thanks Victor for the acknowledgement.

Bugtracker issue 9014 reported

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

Maurice
Post Reply