All child pages needed of a particular parent page

Permalink 3 users found helpful
Hello Guys
I'm trying to fetch all the child page of a particular page. I do need a drop down of all child pages of a particular page. I do have the id of the parent page. It won't change anyway, so I can use it as fixed.

Please tell me how to accomplish this. Thanks in advance.

Rony

ronyDdeveloper
 
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
Is there anyone who can help on this? I'm really in a need of this.

Rony
JohntheFish replied on at Permalink Reply
JohntheFish
How does autonav solve this?
adajad replied on at Permalink Reply 1 Attachment
adajad
I just did a test in 5.6.0.2 and created an autonav template (attached).

It's not pretty with inline styles and jQuery, but it works and might serve as a starting point for you.

Just rename the extension of the attached file to .php and upload to 'webroot/blocks/autonav/templates'. Add an autonav block to your page and set it to start under your parent page holding your subpages. Use the custom template previously uploaded (Page Dropdown List).

Of course you can style it as you want and change the jQuery, or whatever. It's just a starting point for you (but fully functional).

Edit: see this jsFiddle to see how it turns out before uploading http://jsfiddle.net/5s7GW/