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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -