V4.1.x Javascript tree menu

Discussion in 'Modules / Plugins / Modifications' started by magicosta, Aug 18, 2009.

  1. magicosta Customer

    Hello everybody,

    I would like to use the plugin "function.categories_js.php" to set up a jascript tree menu for my categories in the left side of my pages.

    So I followed the instructions writen in the head of the plugin and I pasted the following code in layout.tpl but nothing happen!!

    <link rel="StyleSheet" href="javascript/dtree/dtree.css" type="text/css" />
    <script type="text/javascript" src="javascript/dtree/dtree.js"></script>
    <script type="text/javascript">
    <!--
    {literal}
    d = new dTree('d');
    d.add(0,-1,'My example tree');
    {/literal}

    {categories_js}
    {foreach from=$jscat item=entry}
    {$entry.name}
    {/foreach}
    {literal}
    document.write(d);
    {/literal}
    //-->
    </script>


    Anybody knows how I should do to make that plugin working?

    Thank you for your help.

    (def.template v4.1.5 developper)
  2. damiun Customer

    Hi,

    I dont have any experience with the mod but make sure:
    - you've activated the mod
    - the link to the files are correct (try to copy paste it beneath the original and use direct url (test them first)
    - and you are using the tpl file of the template yu have set as your default. )

    Dominick
    Do you maybe have a link, it can be helpful.
  3. magicosta Customer

    Thank you for trying to help,

    The plugin is not a module and so you don't have to activate it.

    I am developping now in internal with xampp so i haen't any link to provide sorry.

    I still looking for my solution

    Thanks again
  4. Eric Barnes Guest

    That plugin is kind of old now so I am not 100% sure it will run as is. However to check please download the dtree script files from here: Destroydrop » Javascripts » Tree then run it again.
  5. magicosta Customer

    Thank you Eric.

    I was trying to make this plugin working but...I am not successfull!

    I went to the link you provided and downloaded the dtree.zip.

    I put dtree.css, dtree.js and the images file call img in one main file called dtree and I have copyed that one in javascript directory.

    The categories are displayed but nothing else and the links are not working.

    Any idea?

Share This Page