Knowledge Base support case for Likno Drop Down Menu Trees, abstracted and stripped of all user’s private info.


Initial Email From:
John
Initial Email Subject: Drop down menu trees question
Support Case Month: June 2012

Hi,

I'm evaluating the trial version of your Drop down menu trees program and when I create a new project and preview it, the selected leaves show as being selected in the preview, which is what I want.  However as soon as I begin customizing it by adding putting a value in the link field under the mouse click column that leaf no longer will show as being selected.  Am I missing something?  I'm ready to purchase a license for this however I do need to know I can have the currently selected page (leaf) showing as being selected.

Thanks,

John

Reply From: Likno Customer Support

Dear John,

I am afraid that there is currently no automatic way to re-select the “current” item in the tree. You can do this using the API if you want, but this would mean adding a given code in every page to select the desired item.

Is this something you consider critical for the application?

Regards,
Kostas
Likno Customer Support
www.likno.com
Create any type of javascript menu (CSS menu, drop-down menu, sliding menu), button, html tree, modal window, tooltip, accordion, tab, scroller, jQuery slider or design for your websites!
Like us on Facebook – Follow us on Twitter

Reply From: John

My customers like this option Kostas, I often use a similar option in AllWebMenus  to indicate the active page.  I'm looking to upgrade an older tree application in one of my web sites (http://barnquilts.com) which does indicate the active page in the tree.

If you could tell me what it would involve to use the API and additional code that might work for me.  I'd really like to use your tree program, I love using the other Likno products I'm licensed to use.

John

Reply From: Likno Customer Support

Dear John,

Using the Tree API you can call the tree (using its “compiled name”) and then toggle and select the items you want.

For example if you add the following code to your page (right after the Linking Code):

<script type="text/javascript">

    setTimeout(function () {

        tree.toggleBranch("tree_1");

        tree.selectBranch("tree_1_0");

    }, 500);

</script>

This will unfold the second tree item (assuming it has a subtree) and select the first item of its subtree. Note that the numbering starts from 0.

menu structure

The above will work in a default new project.

If you change the compile name of your tree to “mytree”:

menu tree compile name

Then the above code should be:

<script type="text/javascript">

    setTimeout(function () {

        mytree.toggleBranch("mytree_1");

        mytree.selectBranch("mytree_1_0");

    }, 500);

</script>

Note that the 500ms delay is there to make sure that the tree had time to load before you try unfolding and highlighting it.

Let me know if you need more help on this.

Regards,
Kostas
Likno Customer Support
www.likno.com
Create any type of javascript menu (CSS menu, drop-down menu, sliding menu), button, html tree, modal window, tooltip, accordion, tab, scroller, jQuery slider or design for your websites!
Like us on Facebook – Follow us on Twitter

Reply From: Likno Customer Support

You may also want to read the API documentation in the help:

Drop Down Menu Trees documentation

Regards,
Kostas
Likno Customer Support
www.likno.com
Create any type of javascript menu (CSS menu, drop-down menu, sliding menu), button, html tree, modal window, tooltip, accordion, tab, scroller, jQuery slider or design for your websites!
Like us on Facebook – Follow us on Twitter

Reply From: John

Thank you Kostas, I I'll give this a try then.

Thanks again,

John

Tags: , , , , , , , , , , , , , , , ,