{% page_list %}

Fetch a list of Pages.


{% page_list [[var|set|assign] new_variable_name] [output_to_template] [input [...]] %}

You MUST include either a variable name to assign the list to, "output_to_template", or both (if both output_to_template should be the later argument).

If you are assigning the list to a variable and do not specify one of "var", "set", or "assign", then the "var" behavior will be used - which is to save the result on the current scope.

If you are outputting the list to the template, it will use the default output for page_lists

You may include as many inputs for the list as desired. Each input may be a page, a list (collection/array/etc..) of pages, a guid, or a string.

Developer Overview

Liquid Markup