Hi,
You can only have one true wiki index, but you can certainly create 2 wiki areas (board A, and board B). There are currently no active CodeEvents in VW4, but I will add one to the appropriate spot so you can change the wiki tab name and link if desired in the next release. If you want to do it before the event vw_nav_links is available, then it's a bit more complex.
1. Edit VaultWiki's config.php file and change the dependency from 'xf' to 'mysite|xf'. Only use alphanumeric characters for your 'mysite' token, because like XenForo, VaultWiki uses underscores and some other special characters to build the classpath.
2. In /vault/core/model/plugins/general, create a file called 'mysite.php'. The contents should look like this:
PHP:
<?php
require_once(vw_Hard_Core::get_dir() . '/model/plugins/general/xf.php');
class vw_Plugins_General_Model_mysite extends vw_Plugins_General_XF {
public function get_nav_links($show_links)
{
$links = parent::get_nav_links($show_links);
if (vw_Hard_Core::controller('Request')->styleid() == CHANGE_IN_STYLE) {
$index = array(
'title' => 'AREA_TITLE' // e.g. board A or board B
);
vw_Hard_Core::model('URL')->get($index);
vw_Hard_Core::model('URL')->array_map($links, $index, 'wiki_url');
}
return $links;
}
}
In general this is not the appropriate way for mods to modify VaultWiki, since class proxying doesn't occur. You should only do this for site-level modifications. Other distributed mods should use Code Events once they are added to VaultWiki.