Selection plugin


On Init

No init_site function.


No loader is registered.

Content Types

Defines a Selection content type.

This type is not renderable.

class Selection(Content)
filter_by: dict = {}

Uses the Object Queries syntax to define a filter for which objects should be in this selection.

sort_by: str = 'name'

The field to order matching objects by.

limit: int = 0

Maximum number of objects to return.

Use 0 for unlimited.


Yields a list of content objets from Site.pages matching the query.


Yields a list of content objets from Site.content matching the query.

Context Providers

No Context Providers are registered.