$Id: INSTALL.txt,v 1.3 2007/07/25 12:25:42 alex pott $

1. Install knowledge tree somewhere where it will be accessible below the path
   of you Drupal install. E.g. if your drupal site is accessible at
   "www.mysite.com/drupal/" knowledge tree would have to be installed at
   "www.mysite.com/drupal/kt/". This is due to restrictions browsers place
   on reading cookies.
   
   Original instructions say :

   "If possible install the knowledge tree tables in the same database as the drupal
   tables." - Not sure why it works fine in separate DB's

   
   For the KT installation please see the KT manual.

2. Copy the kt folder into your modules directory

3. Enable the module in drupal

4. Configure the kt module in Drupal:
   administer->settings->Knowledge tree

   If you leave "Copy Drupal users and roles to KT" set to yes Knowledge Tree 
   will import Drupal users and their roles when they log in. If their role has the permission "Kt admin"
   then they will be put into the system admin group in Knowledge Tree as well.

5. Set the permissions for accesing kt in Drupal:
   login to kt = user can access to kt
   kt admin = user can admin kt parametres.

6. a) The KT module has been tested knowledgeTree-src-3.3.6 and 3.4.1
   b) Backup the Knowledge directories
   c) Copy login.php and control.php (overwrite the
   existing file) into your knowledge Tree root directory
   d) Copy drupal.inc.php into the config directory in your knowledge Tree root directory

7. Edit the settings in the drupal.inc.php

9. Click the DMS link on your menu and you should see knowledge tree.

OPTIONAL Steps:

10. To make sure that Knowledge Tree pages always load in the iframe add this code to the 
    standard_page.smarty template (in \templates\kt3\) just beneath the <body> tag.


        <script type="text/javascript">
        
if (self.location == top.location &&
location.search.substring(1) != 'nf')
top.location.href = '../DMS?kt_page=' + escape(self.location);

        </script>

    Additonally this file can be editted to remove the headers and footers on the Knowledge pages

11. Knowledge tree looks best when it has the full with of your design page i.e. without left and right side bars.
    To remove these you need to edit the page.tpl.php.

    For mysite I replaced the entire content div using the following script underneath the header bar just 
    before the content <div>

        <?php if ($_GET['q']!="DMS") { ?>

           <div id="content"> //All the normal Drupal stuff...

    And then this script just before the end of the main div

	<?php } else { ?>
	    <div id="dms">
                <?php print $content ?>
	    </div>
	<?php } ?>
	
	</div><!-- /main -->
