WordPress.org

Ready to get started?Download WordPress

Forums

Foldable page list (WP 1.5) (44 posts)

  1. ianalis
    Member
    Posted 9 years ago #

    This is quite dirty but I used tbr_is_decendant_of()
    and wp_list_pages(). Basically, I checked if the page is a descendant of a page "category" and if so, I used that category's id as the value of the child_of parameter of wp_list_pages()

  2. roblgs
    Member
    Posted 9 years ago #

    If I understand you correctly, try specifying 'child_of=xx' in the argument list, where 'xx' is the id of the parent whose descendents you wish to show.

    If that is not what you mean then an example page with a link and further explanation would be helpful.

  3. mumkin
    Member
    Posted 9 years ago #

    lovely. sounds very much like what I'm looking for, but to handle categories and subcategories. I'm unsure if cats have the same attributes available to them that pages do, however -- have you looked into foldable cats, roblgs?

  4. roblgs
    Member
    Posted 9 years ago #

    Foldable cats is something I'd thought about, but not had time to do... foldable pages was a higher priority as I needed it for a site I was doing. Should be too much of a problem extending this to Cats as well, so watch this space...

  5. spitstatic
    Member
    Posted 9 years ago #

    How can I use this plugin, but still exclude certain pages from appearing in the nav alltogether?

    I have my main nav (design, art, writing, markup, life), and those are all pages with subpages. But I have other pages such as archives, contact, etc. that appear in the nav - and I would like to remove them. Is this possible?

  6. Glutnix
    Member
    Posted 9 years ago #

    Great work! Would be nice if I could use this for Categories too...

  7. roblgs
    Member
    Posted 9 years ago #

    With regard to the exclusion of pages, this should work the same as in wp_list_pages, from which this plugin is derived...

    As for categories, I have a preliminary plugin available from Webspace Works WP plugins: Fold Category List. There is still a way to go with regard to full functionality, but the fundamentals (folding the category list) are working OK.

    Enjoy!!

  8. bmabinijr
    Member
    Posted 9 years ago #

    How would you get that to work in "Semiologic Theme and CMS"?
    If that's possible. The "sidebar.php" doesn't ever remotely resembel the .php file in the "default" theme, for instance. Not to my untrained eye anyway.

  9. bmabinijr
    Member
    Posted 9 years ago #


  10. pineapplemike
    Member
    Posted 8 years ago #

    when i use it, it looks great but then my page is invalid.

    i think it has something to do with -
    <?php wswwpx_fold_category_list ($args); ?>

    anyone else with this problem?

  11. hamish
    Member
    Posted 8 years ago #

    Hi there. Thanks for this plugin. It has helped me considerably in reducing my headaches today. I do have a small question, however. I am attempting to setup a site using WP as a functioning CMS for a small website we are developing. This is purely a test run for us as we are keen to see if in fact WP can work how we want it to. So here's my question:

    We have a horizontal primary nav set up within a <div id=prim-nav> </div> tag. That is fine and everything displays correctly. However, I a want to know if a secondary nav (children of the parent items) can be displayed elsewhere on the page, ie. in a seperate div tag (perhaps vertical on RH column), hence I need two customised 'wswwpx' tags for displaying the different parts of the navigation.

    Does this make sense? Can anyone help me? Cheers.

  12. roblgs
    Member
    Posted 8 years ago #

    Hi Hamish,

    I'm doing exactly the same thing for a rework of my webspaceWorks.com site, built entirely off wordpress 1.5+... unfortunately the reviesed version isn't available for view yet as I'm too busy with paying work at the moment.

    What you will need to do is to trap the id of the current page in a variable, and then feed this into a second call (located in your sidebar) of 'fold_page_list' under the 'child_of' argument, so that it will only show the children of the currently loaded page.

    This far I have working, but things get awkward if trying to do this with categories on a page, since the category list doesn't include the page_id in its query_string... methinks further modifications of more fundamental nature are required!!

    Let me know if that helps any.

    Rgds...

  13. hamish
    Member
    Posted 8 years ago #

    Hey roblgs

    I forgot to reply to this post and say thanks for your help. I've used this plugin on a few sites and it works like a dream. Our most ambitious being - http://www.soulpurpose.co.nz

    Thanks heaps

    Hamish

  14. yetsirahj
    Member
    Posted 7 years ago #

    Has anyone found a way to view only a page and its subpages?
    As in if I were to goto http://www.blog.com/blogpage

    I would only see the blogpage page and whatever subpages it contains?

Topic Closed

This topic has been closed to new replies.

About this Topic