micschk / silverstripe-filterablearchive
This module decorates pages with configurable fields to filter them by. Handy for newsitems & blogs, etc.
Installs: 153
Dependents: 2
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 2
Open Issues: 1
Type:silverstripe-module
Requires
- silverstripe/cms: ~3.0
- silverstripe/framework: ~3.0
- silverstripe/tagfield: ~1.0
This package is auto-updated.
Last update: 2024-11-10 03:21:34 UTC
README
This module decorates pages with configurable fields to filter them by. Handy for newsitems & blogs, etc. (Largely adapted & decoupled from micmania1/silverstripe-blogger)
Filter items via dropdowns by date (paginated).
Features
- Apply decorators to filter pages by date (year, month/year, or day/month/year)
- Filtering by Tags & Categories & corresponding extensions
Installation
composer require micschk/silverstripe-filterablearchive dev-master
Then add the decorators & criteria (todo) which you want to filter by to config.yml:
--- name: 'filterablearchiveextensions' --- NewsHolder: extensions: - 'FilterableArchiveHolderExtension' pagination_control_tab: "Root.Subpages" # name of tab for pagination settings, defaults to "Root.Main" pagination_insert_before: "Subpages" # optional, set position of tab managed_object_class: "NewsItem" managed_object_date_field: "Date" NewsHolder_Controller: extensions: - 'FilterableArchiveHolder_ControllerExtension' NewsItem_Controller: extensions: - 'FilterableArchiveItemExtension'
Recommended
Newsgrid module (manage newsitems from a gridfield), applies this module
Requirements
- SilverStripe 3.0 or newer