How can I generate a list of pages?

Undraw Animating

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:

How to generate and layout a list of pages with a grid and their image?




Showcase yourself and your brand

Get free news, tips, and tricks
to create a remarkable experience for your readers.




Recommended Pages
Undraw File Analysis 8k9b
All the metadatas that you can set for your pages

Page Metadata are page configuration. They are also known as: semantic data. or structured data The metadata can be seen and modified via the Metadata Manager. There is two groups of metadata:...
Undraw My Documents
ComboStrap - List

There are two type of classic list: ordered and unordered (also known as bullet list) The list syntax expects you to put each item in a single line. Input Output Input: Output: If you...



Task Runner