Both sides previous revisionPrevious revisionNext revision | Previous revision |
mantisbt:issue:8757 [2008/01/17 16:36] – foo | mantisbt:issue:8757 [2008/10/29 04:36] (current) – external edit 127.0.0.1 |
---|
====== Mantis - TWiki Integration ====== | ====== Mantis - TWiki Integration ====== |
| |
Mantis issue 8757 contains a wiki api file to handle dispatching links to a TWiki wiki instance. Simply put the wiki_twiki_api.php file in your mantis core directory, and add the following section to your config_inc.php (with your values). The extension should handle proper WikiWord naming of issues and projects. Set $g_wiki_enable to ON, $g_wiki_root_namespace to the name of the TWiki web you want to use, $g_wiki_engine to 'twiki', and make sure $g_wiki_engine_url points to the base URL of your TWiki instance, with a trailing slash (see comments below). | Mantis issue [[http://www.mantisbt.org/bugs/view.php?id=8757|8757]] contains a wiki api file to handle dispatching links to a [[http://twiki.org/|TWiki]] wiki instance. Simply put the wiki_twiki_api.php file in your mantis core directory, and add the following section to your config_inc.php (with your values). The extension should handle proper WikiWord naming of issues and projects. Set $g_wiki_enable to ON, $g_wiki_root_namespace to the name of the TWiki web you want to use, $g_wiki_engine to 'twiki', and make sure $g_wiki_engine_url points to the base URL of your TWiki instance, with a trailing slash (see comments below). |
| |
| <code php> |
##################### | ##################### |
# Wiki Integration | # Wiki Integration |
# Wiki Integration Enabled? | # Wiki Integration Enabled? |
$g_wiki_enable = ON; | $g_wiki_enable = ON; |
# | |
# Wiki Engine (supported engines: 'dokuwiki', 'mediawiki', 'twiki', 'xwiki') | # Wiki Engine (supported engines: 'dokuwiki', 'mediawiki', 'twiki', 'xwiki') |
$g_wiki_engine = 'twiki'; | $g_wiki_engine = 'twiki'; |
# | |
# Wiki namespace to be used as root for all pages relating to this mantis installation. | # Wiki namespace to be used as root for all pages relating to this mantis installation. |
$g_wiki_root_namespace = 'mantis'; | $g_wiki_root_namespace = 'mantis'; |
# | |
# URL under which the wiki engine is hosted, with a trailing slash. | # URL under which the wiki engine is hosted, with a trailing slash. |
# For wikis on the same server, use this syntax: | # For wikis on the same server, use this syntax: |
# | # |
$g_wiki_engine_url = $t_protocol . '://' . $t_host . '/%wiki_engine%/bin/view/'; | $g_wiki_engine_url = $t_protocol . '://' . $t_host . '/%wiki_engine%/bin/view/'; |
| </code> |
| |
So, for my installation, I created a TWiki web called "mantis", and the extension creates "Wiki" links to it for Mantis projects and issues. Note that $g_wiki_engine_url must end with '/bin/view/', so that Mantis will properly form the links to point to the TWiki view function. My TWiki install happens to run on a separate Apache instance (it's used by other groups for other purposes), so I needed to use a full address for my engine URL ('http://twiki.example.com/bin/view/'). | So, for my installation, I created a TWiki web called "mantis", and the extension creates "Wiki" links to it for Mantis projects and issues. Note that $g_wiki_engine_url must end with '/bin/view/', so that Mantis will properly form the links to point to the TWiki view function. My TWiki install happens to run on a separate Apache instance (it's used by other groups for other purposes), so I needed to use a full address for my engine URL ('http://twiki.example.com/bin/view/'). |