WordPress.org

Ready to get started?Download WordPress

Forums

WP-dTree
[resolved] How to force open Wdtree (11 posts)

  1. louisdinh
    Member
    Posted 2 years ago #

    I'm using WordPress 3.3. I set the force open to a category using the id number, but it doesn't open at the loading time. I tried to use the key "all" in the setting but it still cannot open the tree node at the loading time. Would you please show me how to force it open? Thanks so much

    http://wordpress.org/extend/plugins/wp-dtree-30/

  2. ulfben
    Member
    Plugin Author

    Posted 2 years ago #

    What do you mean by "at the loading time"? The script must initialize before openTo can do anything.

    And opening to a specific node is done just the way you did. If it's not working something is wrong. Please provide a link.

  3. louisdinh
    Member
    Posted 2 years ago #

    I mean when I open the website, the node cannot open automatically, you can see the screenshot here http://imageshack.us/photo/my-images/27/democf.png/ and my website is http://www.bacsikim.com/ Please show me how to force the category to open automatically. Thanks

  4. ulfben
    Member
    Plugin Author

    Posted 2 years ago #

    Ah. You seem to have found a nice little edge case. The category IDs are negated to keep them from colliding with the post / page / link IDs in the tree. The requested ID of course, is not.

    I'll have to take a look at that for the next release.

    For now; try to set openTo to "-62" instead of "62". If that doesn't work, try using the category name: "Tin khuyến mãi" in this case I believe?

  5. louisdinh
    Member
    Posted 2 years ago #

    I try using -62 and the category name but it still doesn't work. I hope it will work in the next release. Thanks so much for your kind help.

  6. ulfben
    Member
    Plugin Author

    Posted 2 years ago #

    My bad; I meant to say the category URL. Try using only category/tin-khuyen-mai

    Please let me know if that makes any difference. I'm working on an update for WP-dTree right now.

  7. louisdinh
    Member
    Posted 2 years ago #

    it still doesn't open the node when opening the site. I tried to use both Firefox 8 and IE9 but it still has the same problem.
    Thanks so much

  8. ulfben
    Member
    Plugin Author

    Posted 2 years ago #

    Is there any chance that I could get FTP access to your site (the wp-dtree folder is enough) and an account on your blog? Email me at ulf at [my forum nick].com

  9. ulfben
    Member
    Plugin Author

    Posted 2 years ago #

    Ah. I see it now. Disable Open to selection.

    The dTree correctly finds and opens to both -62 and category/tin-khuyen-mai when loading the script.

    But then - since you run with Open to selection - it tries to find the currently requested page in the tree. That's your home-page, which means the tree closes all nodes again.

  10. ulfben
    Member
    Plugin Author

    Posted 2 years ago #

    I fixed this in 4.3 - force open to always takes precedence.

  11. louisdinh
    Member
    Posted 2 years ago #

    it works great now. thank you so much for your help. i'm sorry for late reply. you are very nice. thanks again

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic