gilbert.plugins.selection module¶
- class gilbert.plugins.selection.Selection(name, site, data=None, meta=None)¶
Bases:
ContentA Content type to provide sorted selections of pages / content.
- property content¶
Apply filtering and sorting to the Site’s content Collection, and return matching objects.
- filter_by: dict¶
- limit: int¶
- property pages¶
Apply filtering and sorting to the Site’s pages Collection, and return matching objects.
- select_objects(source: Collection) list[Content]¶
- sort_by: str¶