twig - page.collection() is empty despite having child pages -


i'm using masonry theme , trying show posts in collection. masonry , had working previously, page.collection empty despite having pages. i've made sure children routable , visible. reinstalled theme, no avail. ideas? @ point haven't modified code affect page logic relating collections.

at top of file is:

{% set collection = page.collection() %} 

i used

{{dump(collection)}} 

but nothing shows up. gives?

i changed page.collection page.children instead. accomplishes same thing without having add header content on page. hungtran pointing out correct way though.


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -