Skip to content

Collections

Collections are configured in the Collections tab in the block constructor.

collections

If the conditions are not filled in, then the collections are populated in the predefined blocks.

collections output

When the conditions are filled in, the collection is placed in the corresponding resources on separate tabs. The name of the tab is the name of the collection.

collections resource

На сайте:

html
<div class="slider">
    {'!PageBlocks'|snippet: [
        'classKey' => 'pbTableValue',
        'collection_id' => 1,
        'tpl' => '@INLINE <div class="slide">
            <img src="{$image.url}" alt="{$image.title}">
            <h2>{$title}</h2>
        </div>'
    ]}
</div>

Read more in the section snippets

© PageBlocks 2019-present