• I’d like to use the “Open to selection” and the “list posts” function within the navigation of my blog (www.teutonika.de). But as the archive list 1000+ posts some browser scripts seem to be unable to handle that amount of queries (list post). Switching off “list posts” speeds up the entire blog tremendously, such as it should be.

    So what I’m trying to figure out is a way to make the tree automatically open to categories (sub-categories) only and when the user “clicks” on the last sub-category in the hierarchical order, the tree opens and lists only the referring posts of that category. In other words: limit the queries of posts by certain categories.
    Sorry for bad english, but I hope that makes sense to you.

    Thank You.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter teutonika

    (@teutonika)

    … in other words: “Open to categories” (not posts) only.

    PS:
    Ulf, the book I sent you is going to take a while (amazon):

    Estimated arrival date: 02/18/2008 – 04/10/2008

    Where do you live that it takes so long?

    Actually, what is slowing your site down is plain ol’ PHP, and not the queries. Thanks to the cache, WP-dTree 3.x is only a single query. 🙂 But also due to the cache, Open To Selection is one bastard of a hack.

    Basically what I do is run though each line of your massive 1000-line tree, and check the requested post ID against the each line (well, the theoretical average would be half of the lines). If a match is found, it add’s a short print statement to the site so dTree can open it for us.

    So. Yes – Open To Selection is very painfull in your scenario. To have Open To Selection only for the Category tree, just turn it off for the other trees in the config panel. 🙂

    If I understand your proposed change correctly, you’re talking about asynchronous or realtime loading of tree data. That would indeed be the optimal solution, but I probably wont ajaxify this beast for a long time.

    Most sites navigation trees are (thanks to some optimizations of the dtree javascript) less than 50Kb even after several years of posting, so in the vast majority of cases this static cache solution works very well.

    Oh – and thanks for the (not very soon to be delivered) book! I appreciate it a lot.

    We’re practically neighbours btw. The Janks tend so send stuff around the pond, instead of over it. 😉

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin WP-dTree 3.3.2] Open to & List Posts’ is closed to new replies.