Hi! I'd like to add child and parent pages to my site so that I have pages underneath other pages and create a hierarchy. Nothing too complicated! I figured I can do it by selecting a parent when I add the page to the menu, but that only makes it look like a parent and child structure. In my "Content" area, all my pages are listed, and are not in a hierarchy. The breadcrumbs, nor URL, reflect the parent/child relationship. They're all just pages.

What's the best way to create this kind of hierarchy? It seems in other CMS programs I used, this is already built in. Maybe it is in Drupal and I just haven't found it yet? I'm new.

Also, can I add other content types like Articles to be children of pages?

Thanks,
Brendan

Comments

VM’s picture

enable the book.module

charlied’s picture

Probably the simplest way (at least for Drupal 7) is to use Book module built into Core.

  1. Enable the Book module - under structure you will see a content type Book.
  2. Create an node of content type Book
  3. The first time you do this go to the Outline tab and set this node as the "top level page of the book"
  4. When you save this node it has now links at the bottom (add child) etc so you can build the hierarchy
  5. You can add extra content fields to the Book content type if you need them (eg to attach images etc)

For more info see core documentation

There are many supporting modules - eg Book Explorer than shows a tree-like browser to browse the book. Or you can do queries using views (the drupal db query tool) - do a search for more.

MartinMa’s picture

I cant define different book-types ... :-(

Some solutions mentioned in older articles are abandoned or not available for drupal 8 :-(

svrl’s picture

Hello, aren't there any Drupal 8 support or alternatives for this functionality? Idk why Drupal don't provide that in core, because it would be great wiki system alternative. Do any of you know any related information?

Thank you