Table of Contents

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

About

This howto will show you how to:

Steps

Page Sql: How to select the pages

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
3/17/26, 6:56 PM How to get ComboWiki Up and Running?
3/17/26, 6:56 PM Docker
3/17/26, 6:56 PM Server
3/17/26, 6:56 PM Combo Plugin
3/17/26, 6:56 PM Third Party Plugins

Fragment: The markup to generate

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>
Undraw Animating
How to generate and layout a list of pages with a grid and their image?

This howto shows you how to use the page sql, a fragment, the iterator and to generate a grid layout....

Iterator: Iterate over the fragment with the selected pages

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:

Undraw Stepping Up
How to get ComboWiki Up and Running?

We offer several ways to get ComboWiki up and running. We are sorry but you need to choose the best...

Site Starter Home Page Snapshot
Docker

This step will get you an installation with our image. Download the binary or install a package...

Undraw Stepping Up
Server

This series of article is intended to help you get a DokuWiki instance installed on a server with a Linux/Windows...

Dokuwiki Admin Window Default Template
Combo Plugin

Combo is the bundle of components that complements the strap template. This step shows you how to install...

Move Plugin Rename
Third Party Plugins

This page is an optional and informative step that highlights important information that you should now...



Note that in the fragment, we have wrapped the card in a box. Why ? Because:

Conclusion

In this howto, you learned about:

That's all, folks.