So I am looking to fetch child page of current node for eg

 - Great Blue Heron
 - Wood Duck
 - Willet
 - Bass
 - Catfish
 - Tilapia

When I am on Bird page I would like to show - Great Blue Heron - Wood Duck - Willet

When I am Willet as Willet have no child pages it should show parent page and if do have child pages it should show its child pages

Is it possible to do it automatically like Admin creates a page he doesnt need to go to menu and add it himself to the menu , I tried https://www.drupal.org/project/menu_block seems like there are 2 steps involved

  1. Create Page
  2. Than Add to Menu

I want to get Node id and automatically fetch its child and sub-child pages

  • You add a menu item right from the node page.
    – Kevin
    Apr 7, 2017 at 18:24
  • Can you elaborate this a bit ?
    – Sherry
    Apr 7, 2017 at 18:29
  • 1
    If the content type setting has enabled any menu placement, the. Those node forms have a section to add a menu link. It doesn't have to be a separate process.
    – Kevin
    Apr 7, 2017 at 18:29
  • I am sorry but I donot understand , DO you mean in a view I could arrange a filter in a way that I can get child pages of current page ?
    – Sherry
    Apr 7, 2017 at 18:38
  • 2
    How exactly are you managing parent and child relationships? Unlike other CMS systems, Drupal has no hierarical content structure. Drupal usually works with reference fields to connect content. Creating a menu tree with references to nodes does not really connect the nodes in anyway beside the menu. Maybe try the book module to see if that provides what you're after.
    – Berdir
    Apr 7, 2017 at 23:34


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.