WordPress.org

Ready to get started?Download WordPress

Forums

Fold Page List update (24 posts)

  1. roblgs
    Member
    Posted 9 years ago #

    I have just placed an update to the Fold Page List plugin on the webspaceworks server.

    The new version is 1.0b6[rc3] and I fully expect this to be the final beta before drawing a line under 1.0.

    The recent change is:

    Add support for custom title attributes to be added to the links.

    This requires that a custom tag be added to any page where you want a more helpful title attribute to appear when a visitor mouses over the link.

    wswpg_linkttl is the custom tag to use.

    If present it will be used in preference to the default behaviour. If not used then the default behaviour of using the same text for visible link text and the title attribute will be reverted to.

    Hope this is useful, and would welcome any feedback.

    Best regards

    Rob

  2. metrictensor
    Member
    Posted 8 years ago #

    Is it possible to modify this plugin so that on each click only the immediate sub pages are displayed, for example:

    Top level nav:

    - veg
    - fruit
    - meat

    User clicks on fruit, next page displays sub nav

    - apple
    - grape
    - pear
    - banana

    User clicks on apple, next page displays sub nav

    - red delicious
    - cox
    - granny smith

    I know this has been asked before:

    http://wordpress.org/support/topic/31760#post-197608

    and the solution is possibly to pass the current page id to the 'child_of' parameter in the argument list but I cant get it to work.

    Any help would be much appreciated.

    Michael.

  3. roblgs
    Member
    Posted 8 years ago #

    Hi Michael,

    What you suggest in your final paragraph is the way to do it... passing current page id as child_of will do just what you are seeking to do.

    I'm curious as to how you are trying to do this, because it should work.

    Regards

    Rob

  4. metrictensor
    Member
    Posted 8 years ago #

    Hi Rob,

    Thanks for the reply, I did a wee bit more searching and found what I was looking for, namely the piece of code below. It uses wp_list_pages and passes the current page id to the 'child_of' parameter:

    <?php
    if($wp_query->is_page && !is_home()) {
    $lp_param = "";
    $lp_param = "title_li=&depth=1&child_of=" .
    $wp_query->get_queried_object_id();
    wp_list_pages($lp_param);
    }
    ?>

    Thus giving me the navigation display I required.

    Thanks to adsworth:
    http://wordpress.org/support/topic/24230#post-138834

    Michael. 8)

  5. roblgs
    Member
    Posted 8 years ago #

    Hi,

    There is a new version of Fold Page List available.

    This is a minor update to include compatability with the polyglot plugin. There are no other changes to the code at this stage.

    Best regards

    Rob

  6. roblgs
    Member
    Posted 8 years ago #

    Hi,

    This is a brief announcement to say that the current versions of both the Fold_page_list and Fold_category_list plugins appear to be working correctly under beta 2 of WordPress 2

    Best regards

    Rob

  7. roblgs
    Member
    Posted 8 years ago #

    Hi,

    Fold Page List has been upgraded to version 1.1 and includes new functionality to add full unfolding of groups of related pages, and to add a new class to links to differentiate between normal links, the current page link, and links to the ancestors of the current page. This new class is merely a hook, visual differentiation can only be realised by appropriate styling through the stylesheet.

    Full details of the changes, and a link to the new version, are available from the Fold Page List support page, and it remains compatible with current beta of WP2.

    Best regards

    Rob

  8. faxxy
    Member
    Posted 8 years ago #

    This update works like a charm.

    Using v1.5.2

    Thank you!

  9. april19
    Member
    Posted 8 years ago #

    hi roblgs,

    is it possible to exclude pages with no parent_id and only display hierachy within a single ancestory?

    example: header menu displays parent pages click on a page and the sidebar menu displays all child, grandchild etc pages for that particular page..

    thanks for your efforts so far!

  10. roblgs
    Member
    Posted 8 years ago #

    Hi April19,

    If I understand you correctly then this is what the 'child_of' argument is for.

    You would though need two calls, one (which could be to wp_list_pages) with 'depth' set to 1 for the main header navigation menu, and the second with 'depth' set to zero and 'child_of' set to the currently selected main navigation item. setting the optional second parameter to true in order to fully unfold the hierarchy with a single click...

    In fact, you don't need the wswwpx_fold_page_list plugin to do any of that, unless you want the sub-navigation to be folded... otherwise it's all doable with just the standard wp_list_pages... you just need two calls to it though to generate the two navigation lists.

    Best regards

    Rob

  11. johanvanderwijk
    Member
    Posted 8 years ago #

    It is indeed possible to have a header menu that displays the parent pages and the sidebar menu that displays all child, grandchild etc pages for that particular page.

    The only problem is that the page name in the header menu then doesn't keep the page_item current_page_item class.

    Until now I have not found a solution for this, even though this seems to be a much requested feature.

  12. johanvanderwijk
    Member
    Posted 8 years ago #

    Okay, the solution for this is to add the class ul.menu li.current_page_ancestor a, to your stylesheet.

  13. privatestorm
    Member
    Posted 8 years ago #

    Is it possible to sort parent pages by menu_order but child pages by post_title?

    If not, could this plugin be modified so that the sort columns could be different? Like:

    sort_column_parent=(something)&sort_column_child=(something else)

  14. roblgs
    Member
    Posted 8 years ago #

    Hi,

    As things stand you would have to treat parent and child menus separately... with different calls to the function.

    If the two menus are presented separately, as would be the case of parent pages being in the masthead and children in the sidebar, that would be a viable option, and doable now with the plugin as it stands.

    If, on the other hand, you still wish to keep parents and children alike in the same integrated (nested) menu, then the plugin would need some modification along the lines you describe.

    Consider it added to the to-do list.

    Best regards

    Rob

  15. Rok
    Member
    Posted 8 years ago #

    Hi,

    I had installed fold page plugin. The problem after placing the code in sidebar is as below,

    1. Title "Page" displayed left aligned.
    2. Page list overlaps below content i.e. under Page List -I have got Site Links.

    can anyone advice solution.

  16. roblgs
    Member
    Posted 8 years ago #

    Hi,

    The first problem suggests a css issue, so needs addressing in your stylesheet.

    The second, I'm not sure I completely understand. Can you post a link to the site or a development page where the problem can be seen first hand.

    I'd also potentially need to see how you are calling the wswwpx_fold_page_list function in the sidebar.

    Lastly, there is a support email address in the header of the plugin... and a contact form on the website. These are better places to raise problems than here in the support forum since they reach me directly, getting seen and attended to more quickly than if they come here.

    Best regards

    Rob

  17. roblgs
    Member
    Posted 8 years ago #

    Hi,

    An update to the Fold Page List plugin was recently uploaded and can be obtained through the download link on the Fold Page List support page.

    This update (v1.3) includes a compatibility fix that will allow the subscribe2 plugin to be used at the same time as the polyglot plugin with Fold Page List active.

    It also makes publicly available a long-standing fix that makes Fold Page List compatible with the application of filters to the page list... This should have been included a while back, but wasn't uploaded to the server until now.

    Best regards

    Rob

  18. sydsum
    Member
    Posted 8 years ago #

    Hi Rob,

    I'm new to PHP and slogging my way through it. I'm not quite understanding what to do with the wswpg_linkttl value. WP wants a 'KEY' and a 'Value', does this go in the 'value' field?

    Also, does this go on every child page or just the parent page or all of them?

    Thanks.

  19. sydsum
    Member
    Posted 8 years ago #

    CONT'D:
    I uploaded the 'fold_page_list.php' under ‘/wp-content/plugins/’ and activated it in my Site Admin, then in my 'sidebar.php' file, I changed the following line:

    '<?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>' ); ?>'

    with this:

    '<?php wswwpx_fold_page_list ($args, $fullunfold); ?>'

    Nothing has changed. the pages area still shows parents and children pages. I'm sure my lack of PHP knowledge is hurting me here and I would appreciate any help.

    Thanks.

  20. roblgs
    Member
    Posted 8 years ago #

    Hi Sydsum,

    Sorry for the delay...

    To start with your second problem first, if your call to wp_list_pages was as you describe above, then the equivalent call to wswwpx_fold_page_list would also be similar:

    '<?php wswwpx_fold_page_list ('title_li=<h2>' . __('Pages') . '</h2>' ); ?>'

    The bit between the ( & ) being the '$args' in the sample call. $fullunfold defaults to false, so the effect should be to collapse the entire list to just its top level, andto then unfold one level at a time as you click into your page hierarchy. If you were to pass $fullunfold as 'true':

    '<?php wswwpx_fold_page_list ('title_li=<h2>' . __('Pages') . '</h2>', true ); ?>'

    then clicking on a top level would fully unfold its hierarchy.

    Now, back to your first problem...

    wswpg_linkttl is the key you need to specify (type in) to add a new key to the list. Once added you can simply select it from the list, but first time you have to type it into the input field. You then add the rollover text you want to use to the textarea to the right of the key. This will be used as the value. To illustrate, if you want the text "Some interesting thoughts on things" to appear as a rollover (tooltip) on a link to a page, then add the value "Some interesting thoughts on things" to a custom field with the key 'wswpg_linkttl'

    Hope that helps...

    Rob

  21. jfugere
    Member
    Posted 7 years ago #

    Hi All

    I am able to get Fold Page List (1.4) to work only when I deactivate Sidebar Widgets - is there a way to make them work together?

    http://themurraytree.com/WordPress
    Was hoping to just use wordpress as a CMS... I only want to show Pages not Blogroll, Meta, Links etc....

    Thoughts?

    Thanks you - tis a great plugin in. Just want to make it work.

    -jfugere

  22. roblgs
    Member
    Posted 7 years ago #

    Hi,

    A new version of Fold Page List has been released (v1.5) resolving an issue where the 'page_folder' class was being applied to pages that had no sub-pages. The problem was triggered by attachments on a page, so if you had no attachments the problem wouldn't arise.

    The new version is available from the usual Fold Page List support page.

    Also, to perhaps answer jfugere's question, the King Widgets available from MediaProjekte offer sidebar widgetry that is compatible with both Fold Page List and Fold Category List plugins.

    Best regards

    Rob

  23. raoulw
    Member
    Posted 7 years ago #

    > is it possible to exclude pages with no
    > parent_id and only display hierachy within a
    > single ancestory?"

    If what you mean is having a topnav & a side nav only displaying items (all children, grandkids, greatgrands, etc)for the section you're in, yes. Here's what works for me:

    $ancestor=current(_wswwpx_page_get_ancestor_ids($post->ID));
    $args="title_li=&sort_column=menu_order&child_of=".$ancestor."&depth=0";
    wp_list_pages($args);

    Regards,
    Raoul

  24. mdp8593
    Member
    Posted 7 years ago #

    Raoul - that's great. Any way to also add the parent for that seciotn to that list.

    Thanks - Michael

Topic Closed

This topic has been closed to new replies.

About this Topic