Skip to content
kolber edited this page Mar 9, 2012 · 2 revisions

Stacey provides collections of related pages and assets which can be looped over from within the templates.

page.root Will list each top-level page within /content .
page.children Will list any child pages relative to the current page.
page.parents Will list the full ancestor tree relative to the current page.
page.parent Will list the direct ancestor relative to the current page.
page.siblings Will list any pages sitting at the same level as the current page. This collection does not include the current page.
page.siblings_and_self Will list any pages sitting at the same level as the current page. This collection includes the current page.
page.next_sibling Constructs a reference to the next page sitting at the same level as the current page (in numeric order).
page.previous_sibling Constructs a reference to the previous page sitting at the same level as the current page (in numeric order).

Assets Collections

page.files A collection of all files (of any type except .yml ) associated with the page.
page.images , page.video Will output a list of all images or video files associated with this page (ie. sitting in the same folder as the page’s .txt file). If there are no matching assets, these collections will be empty.
page.html , page.swf , page.mp3 , page.pdf , etc. Additionally, stacey will create a unique collection for any file type (other than .txt files) that it finds within the page’s folder.
Clone this wiki locally