Migrating from version 2


Q: How do I migrate from version 2?

A: This describes the steps to take to migrate from version 2 of foldertree, as found on Marcelino Martin's web site, to version 4. It describes what changes need to be made to the files contained in the version 2 download. Working directory refers to the directory of your current version 2 installation. Download directory refers to the directory where you downloaded and installed the new version 4.

  1. Download the version 4 zip file and unzip into a new download directory.
  2. In the file photosturism.js in your working directory, change all occurrences of 'foldersTree' to 'fT'.
  3. Delete the following existing files in your working directory:

    and replace them with the following equivalent files from the new download directory (these are generally the same files with a different file name, plus some extra document and folder icon files for mouseover events)

  4. Change the name of file ftie4style.css in your working directory to ftstyle.css
  5. Copy files ftblank.htm, ft.js, ftoptions.js, EssfT.class and EssfTBeanInfo.class from the download directory into your working directory.
  6. Change the file ftexample.html in your working directory, which is currently:
    <html>
    <head>
    </head>
    
    <FRAMESET cols='200,*'> 
      <FRAME src='photosturismLF.html' name='treeframe'  >
      <FRAME SRC='photos.html' name='basefrm'> 
    </FRAMESET> 
    
    </HTML>
    

    to

    <html>
    <head>
    <link rel='stylesheet' href='ftstyle.css'>
    <!-- Infrastructure code for the tree -->
    <script language = 'Javascript' src = 'ft.js'></script>
    <script language = 'Javascript' src = 'ftoptions.js'></script>
    <script language = 'Javascript' src = 'photosturism.js'></script>
    </head>
    
    <FRAMESET cols='200,*' onLoad='self.blank()'>
      <FRAME SRC = 'ftblank.htm' name='menufrm' > 
      <FRAME SRC='photos.html' name='basefrm'> 
    </FRAMESET> 
    </HTML>
  7. Delete the file photosturismLF.html in your working directory. It is no longer needed.
  8. Test by opening file ftexample.html in your browser.