How to output subpage content in a layout file? #848
-
I would like to output the content of several sub folders with something like Is there a decisive hint as to how I can solve this most elegantly? Example folder structure:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The class YellowContent gives access to content files. This example outputs one specific page:
Subpages are also called children. This example snippet outputs multiple pages in a loop:
You could also use the current page as starting position. Another example, the loop stays the same:
There are many possibilities to combine the API, you figure something out that works for you. |
Beta Was this translation helpful? Give feedback.
The class YellowContent gives access to content files. This example outputs one specific page:
Subpages are also called children. This example snippet outputs multiple pages in a loop:
You could also use the current page as starting position. Another example, the loop stays the same: