This howto will show you how to:
With page sql, you can select pages via a select statement.
Page Sql permits to query pages in a lot of fashion.
For this example, we will select the last 5 modified howto with the following sql.
select from pages where path like ':howto%' order by date_modified desc limit 5
This query returns for this website the following pages:
| Date | Page | 
|---|---|
| 10/2/25, 12:17 PM | How to get DokuWiki Up and Running? | 
| 10/2/25, 12:17 PM | Favicon Installation | 
| 10/2/25, 12:17 PM | Top menubar | 
| 10/2/25, 12:17 PM | How to store your site in Git? | 
| 10/2/25, 12:17 PM | How to get started with ComboStrap ? | 
When you generate content, you are looping over the same content over and over. This content part in ComboStrap is called a fragment
<card width="250px" align="center" clickable>
   <page-image/>
   <heading 4>$title</heading>
   ${description | head(100,"...")} [[$path| ]]
</card>
The iterator is a component that
The below example generate a grid that splits the horizontal space in 3 (max-line=3)
<iterator>
    <data>select from pages where path like ':howto%' order by date_modified desc limit 5</data>
    <grid max-line="3">
        <fragment>
            <box>
               <card width="250px" align="center" clickable>
                   <page-image/>
                   <heading 4>$title</heading>
                   ${description | head(100,"...")}
                   [[$path| ]]
               </card>    
            </box>
       </fragment>
    </grid>
</iterator>
The output is:
Note that in the fragment, we have wrapped the card in a box. Why ? Because:
In this howto, you learned about:
That's all, folks.