gilbert.plugins.selection module

class gilbert.plugins.selection.Selection(name, site, data=None, meta=None)

Bases: gilbert.content.Content

A Content type to provide sorted selections of pages / content.

content

Apply filtering and sorting to the Site’s content Collection, and return matching objects.

filter_by
limit
pages

Apply filtering and sorting to the Site’s pages Collection, and return matching objects.

select_objects(source: gilbert.collection.Collection) → List[gilbert.content.Content]
sort_by