ComboStrap - Template Iterator

About

iterator permits to loop and applies a template in order to create a list of pages.

You may apply the following layout:

Example

Masonry

The below iterator example:

  • will generate the last 4 modified pages (defined by the page sql in the data node)
select order by date_modified desc limit 4

The iterator markup:

<iterator>
    <data>select where is_low_quality = 0 order by date_modified desc limit 4</data>

    <heading d3 text-align="center" spacing="mb-3"> The last 4 Changes </heading>
    <masonry>
        <template>
            <card clickable>
            <page-image path="$path" ratio="16:9"/>
            === $title ===
            <itext color="muted"><date format="%h %d - %H:%M">$date_modified</date></itext>
            
            $description [[$path| ]]
            </card>
        </template>
    </masonry>
</iterator>

The Result:

The last 4 Changes

ComboStrap UI - Menu bar

Sep 03 - 12:50

A menubar is an horizontal navigational bar with links and dropdown menu that should be used in the page header. Inside a menu component, you can add: a brand with an optional icon a group to group navigational element such as a dropdown menu a collapse container to group the element that will collapssearch forbuttonbreakpoinbreakpoint codexs&apos;smmdlgxlpositionnormatopbottomalignleftcenterthemelightdarbackground-colorlighbranicoCollapseexpand=tru…

Automatic Canonical Path

Aug 27 - 16:33

This feature provides a default value to the router for the canonical path based on the last parts of the page path. It allows therefore a named permalink redirect based on the canonical. slots Example For example, if you have a page path with the value This feature will: not create a canonical if the minimal number of name configuration is canonicalbacklinkminimal number of name configurationseo:backlinkminimal number of name configuratioconfigurationM…

Release 1.24.1 Patch / Igor Compat

Aug 27 - 06:45

The release 1.24.1 is a patch release above the release 1.24 that corrects bugs and adapt some code to avoid warning from Combostrap. List Compatibility <https://github.com/ComboStrap/combo/commit/70994c2831d837be629cee453532a58707546b5f>Igor Compatibility Bugs <https://github.com/ComboStrap/combo/issues/40>Default link attribute is passed even if the media is not an image <https://forum.dokuwiki.org/d/20384-error-starting-wiki-with-com…

ComboStap - Latest release

Aug 27 - 06:38

A synonym page to redirect to the latest release

Syntax

<iterator>
   <data>select where variable = 'xxx'</data>
   ... header  markup...
   <template>$variable1 ... $variable2</template>
   ... footer  markup...
</iterator>

where:

  • data contains a page sql
  • template is a template that will be repeated for each data row.
  • If your iteration is time-based, you may need to set a page cache expiration frequency.
  • If the data does not return any rows, the iterator content is not printed (ie header and footer included)
Powered by ComboStrap