K3 plugin: display any page list in a section. Any parent, many parents, filtered, don't care.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
composer.json
index.js
index.php
license.txt
readme.md

readme.md

Display any page list in a Section. Any parent, many parents, filtered, don't care.
On the other hand, you won't be able to sort the list or add new pages to it.

Install

Download Zip file

Copy plugin folder into site/plugins

Composer

Run composer require rasteiner/k3-pagesdisplay-section.

Usage

You select and filter the pages with the query language, with a query property in the section yaml. You can start the query with site, page (refers to the current page), or pages (which is equal to site.pages).

Example

Show all pages that have "Foo" in their title:

sections:
  mysection:
    headline: Foo Pages
    type: pagesdisplay
    query: site.index.filterBy(title, *=, Foo)

Show sibling pages (exclude current page):

sections:
  mysection:
    headline: Siblings
    type: pagesdisplay
    query: page.siblings(false)