I've a very simple task to do in Drupal 8, but I've hard time to find the proper way to do that.
I have a simple menu like this (all basic pages).
- Company
- Organization
- Values
- Terms
- Services
- Team
And when we go to Company page, I want to display all three sub-pages content in there.
How do I get the sub page node ID from the current menu? In Drupal 7, I'd go with something like menu tree data, and parse the URL to get the node ID; I'm sure we can do something similar with Drupal 8, but I can't find a way.
Company page, I want to display all three sub-pages content in there
is there a reason why you need to also have them in separate pages? Seems kinda pointless to click onorganization
and see the same thing you saw incompany
.