How can I generate a list of pages?
About
This howto shows you how you can generate a list of pages with the iterator components.
Steps
Open your tag iterator component
In your document, begin by opening your tag compeonent:
<iterator>
Select your pages
Then add your page selection with the page sql.
We select the last 6 pages that have been modified.
<data>select from pages order by date_modified desc limit 6</data>
Define your fragment
Then define your fragment as being:
<fragment>
* [[$path|$title]]
</fragment>
Close your iterator component and save
Write the closing tag and save your page.
</iterator>
The result
You obtain this result on this website.
Apply your layout
You can use any component to layout your pages.
For instance, you can add them in a grid: