I'm a little lost on how to do this with the Gantry Pages widget. I'm currently using a gantry theme and I would like to generate a list of sub-pages from a parent page. While I could use wp_list_pages to achieve this and point it to only retrieve pages that belong under the current page id, I wanted to use Gantry Pages widget so I could retain the theme format/style for said menu.
Where do I go about changing this setting? I only see a xml file for this widget and I'm unsure which file I should go to add any conditionals that would specify to only retrieve child pages of the current page. I realize I can manually exclude certain pages by ID, but that can become rather impractical as every time I add a new parent page, I'll have to add that ID to the list--which is a bit of a reverse logic.
I appreciate any help on this topic and sample code. Thank you!
Hi,
are these pages present in your menu too? The SplitMenu theme for Gantry Menu widget offers the ability to show only a certain level of the menu items, and it would show the child items of the current menu item.
If not, you would have to override the Gantry Pages widget's options and template files in your theme and make the adjustments.
Please don't PM unless requested
Consider using the custom stylesheet for all your CSS customizations:
gantry-framework.org/documentation/wordp...custom_stylesheet.md
.
Please provide the URL to the issue.
And please mark the thread as solved if the issue is resolved.
Well what I was trying to do was retrieve the menu within the page body without having to use the widget cPanel; right now, this is what it looks like (see screenshot). What I wanted it to do is for it to just show "Board of Directors, Letter from the President, Mission Statement". I'll try to work with overrides and come back with more specific questions.
(image removed)
Nevermind... I'm short of a couple of braincells... all I had to do was add the argument "child_of" and add "$post->ID", which was more of a Wordpress user-issue than anything else. Sorry!! and thanks again!
PS: use pages widget override, at least that got me to the right direction xD
Hi,
I made a little modification to the Gantry Pages widget which adds an new option called "Child Of", you can enter a page ID and the widget will only display the child pages of that page. To use it, download the attached file and extract it in your theme's /widgets directory.
Please don't PM unless requested
Consider using the custom stylesheet for all your CSS customizations:
gantry-framework.org/documentation/wordp...custom_stylesheet.md
.
Please provide the URL to the issue.
And please mark the thread as solved if the issue is resolved.
Thank you, Shazdeh, I hadn't refreshed the page before editing my post. Sounds like exactly what I did but I'm going to download it and have a look at it.
I have to say, by far, of most groups I've belong to, this is one of the best (support)! Appreciate the code/file granted, it's a pleasant surprise. Marking as resolved.
Please don't PM unless requested
Consider using the custom stylesheet for all your CSS customizations:
gantry-framework.org/documentation/wordp...custom_stylesheet.md
.
Please provide the URL to the issue.
And please mark the thread as solved if the issue is resolved.