Display child page details on parent
- Torsten_Kelsch
- Legend Bludit
- Posts: 263
- Joined: Thu Aug 27, 2015 10:24 pm
- Location: Germany
- Has thanked: 4 times
- Been thanked: 2 times
- Contact:
Something like the plugin Menü aller Seiten (I don’t know what the English name is, maybe menu of all pages or so) could help you. But you will have to change the code to your needs, because only the page names are listed, not any excerpts of the content.
On Error GoTo Bed
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 77 times
- Contact:
As Torsten mentioned you can adapt the code of the plugin Page list. Especially the loop to show snippets of the child pages.
Instead of $childPage you can use $child:
$child->title()
$child->coverImage()
$child->description()
$child->permalink()
etc.
Instead of $childPage you can use $child:
$child->title()
$child->coverImage()
$child->description()
$child->permalink()
etc.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets