DokuWiki integration for a single project

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Chewits
Posts: 10
Joined: 06 Nov 2012, 05:25

DokuWiki integration for a single project

Post by Chewits »

Hi!

Is it possible to integrate DokuWiki with MantistBT so that links in the main menu and on issue pages are available for the particular project(s)?
I tried to set these variables via [ Manage Configuration ] > [ Configuration Report ] page:

Code: Select all

wiki_enable: ON;
wiki_engine: dokuwiki;
But it does not work - "Wiki" link does not appear at all. If I set these variables via config_inc.php, everything works fine.

If it is not possible, maybe all $g_wiki_ variables should be enumerated in $g_global_settings?

Alexander
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: DokuWiki integration for a single project

Post by atrol »

Chewits wrote:

Code: Select all

wiki_enable: ON;
wiki_engine: dokuwiki;
You have to set wiki_enable: 1 in database
ON is a numeric constant in our PHP code which is defined as 1
If you enter ON to the database configuration it is treated as a string, that's why it did not work for you.
Please use Search before posting and read the Manual
Chewits
Posts: 10
Joined: 06 Nov 2012, 05:25

Re: DokuWiki integration for a single project

Post by Chewits »

Hi atrol,

I've attached screenshots of how my config looks when I set it in database. There are no 'Wiki' links in this case.
But as soon as I set it globally in config_inc.php it works fine:

Code: Select all

$g_wiki_enable = ON;
$g_wiki_engine = 'dokuwiki';
I tried it with mantis 1.2.18.
Attachments
mantisbt_dokuwiki_integration_db.PNG
mantisbt_dokuwiki_integration_db.PNG (14.19 KiB) Viewed 3641 times
mantisbt_dokuwiki_integration.PNG
mantisbt_dokuwiki_integration.PNG (14.16 KiB) Viewed 3641 times
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: DokuWiki integration for a single project

Post by atrol »

You can't enable Wiki integration for specific projects.
You have to choose "All Projects" for the setting in database.
Please use Search before posting and read the Manual
Chewits
Posts: 10
Joined: 06 Nov 2012, 05:25

Re: DokuWiki integration for a single project

Post by Chewits »

Ok, thank you.
I think these variables should go to $g_global_settings in config_defaults_inc.php. If yes, I can create a pull request for that.
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: DokuWiki integration for a single project

Post by atrol »

Chewits wrote: I think these variables should go to $g_global_settings in config_defaults_inc.php.
After that you would need access to file system to enable/disable Wiki.
As much as possible (and reasonable in terms of security) options should be configurable in web UI.
The real problem is, that we don't have set any information which options should not be set per project and which options should not be set per user.
So we can't prevent useless settings on generic configuration page.
Please use Search before posting and read the Manual
Post Reply