Forums

WP-dTree
[resolved] WP-dtree is only outputting the code behind the menu (3 posts)

  1. andre77
    Member
    Posted 1 year ago #

    I was happy to find the WP-dtree plugin. It is exactly what I've been looking for. But I am still not getting it to work. Instead of showing any menus, it is only outputting:

    if(document.getElementById && document.getElementById('oclinks_pge1')){document.getElementById('oclinks_pge1').style.display = 'block';}
    var pge1 = new wpdTree('pge1', 'http://localhost/testsite/','0');
    pge1.config.useLines=1;
    pge1.config.useIcons=1;
    pge1.config.closeSameLevel=1;
    pge1.config.folderLinks=1;
    pge1.config.useSelection=1;
    pge1.a(0,'root','','','','','');
    pge1.a(24,0,'Om testsite','','om-testsite','','');
    pge1.a(48,45,'Bloggen','','om-testsite/sociala-medier/bloggen','','');
    pge1.a(38,36,'Kontakt','','om-testsite/praktisk-information/kontakt','','');

    etc...

    I've mainly been trying out the "pages"-widget, but I get the same results with the other ones.

    I also tried this on different testsites, different databases, and with a custom blank theme, and with the WordPress twentyten theme - same results.

    Am I missing something in the settings...? Or what can I do about this?

  2. ulfben
    Member
    Posted 1 year ago #

    Like it says in the Plugin description; this happens due to an incomplete installation that left your settings undefined. Just go to Settings -> WP-dTree and hit "Update settings".

  3. andre77
    Member
    Posted 1 year ago #

    Thanks alot! :-) Its working now!

    I missed this info in the description tab. I was mostly searching through the forum and FAQ for the answer.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic