navigation - concrete5 loop child pages of parent -
i'm new concrete5 , need loop out child pages of parent (the parent not being current page needs parent slug passing argument).
i'd expect simple i've found on relates autonav. can't use autonav due site navigation being in non-standard format.
the solution doesn't need print markup - fine generate php array of slugs , titles can loop markup. i'll take either way :-) in advance!
if want some markup, , want displayed on sort of page, check out page list block: http://www.concrete5.org/documentation/editors-guide/in-page-editing/block-areas/add-block/page-list/
if need pages programmatically, there's pagelist
model can pass parent page , children array of page
objects.https://github.com/concrete5/concrete5/blob/master/web/concrete/core/models/page_list.php
Comments
Post a Comment