Was this page helpful?

Structure a MindTouch site without a hierarchy

     

    If you are migrating from MediaWiki and have a large set of pages that you'd rather not use the MindTouch hierarchy, then you can do the follwoing steps:

    First disable the hiearchy in LocalSettings.php which can be done by adding the following:

    $wgNavPaneEnabled = false;  
    $wgNavPaneCallEnabled=false;

    Once you have done this restart your MindTouch service by running the following:

    /etc/init.d/dekiwiki restart
    

    If you are on Windows then reset IIS

    Static Navigation

    After removing the hiearchy you may still want to have some main links to make it easier for your end users to jump to key pages in the system.  This can be done using the Fiesta Skin and using the Custom HTML area 2 which can be accessed by going to the Control Panel -> Customize -> Custom HTML

    In the html box you would create a list of links you wanted to add like the following:

    <a href ="http://192.168.168.120">Home</a><br />

    <a href ="http://192.168.168.120/Accounting">Accounting</a><br />

    Creating a Directory Page

    If you also want to improve the in page navigation you can do it dynamically using DekiScript.  We have done this on our Extension page which allows our Extension pages to be aggregated together according to their category.  This can be done using a Template that we created which can be seen here: http://developer.mindtouch.com/Template:TagDirectory

    You can also accomplish a simple list of pages based on a search query using the wiki.search Dekiscript.  

    Example:

    Let's say you wanted to have a list of all of the pages that were tagged with tech as they are related to tech.  To show all of these pages on one main page you can do so using a similar dekiscript like this:

    {{wiki.search("tag:tech")}}

    Note that you need to have tagged the pages already and given the search engine time to index those pages.

     

    Here is a very basic screenshot that show the hierarchy removed, custom links on the left side and the saved view of using wiki.search to find pages that are tagged with tech.  In my case I tagged user pages with tech as they belong to the tech department:

     

    sample page.png

    Was this page helpful?
    Tag page

    Files 1

    FileVersionSizeModified 
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by