Improved indexing mechanism #117

Open
opened 2018-11-26 09:29:17 +00:00 by giplt · 1 comment
giplt commented 2018-11-26 09:29:17 +00:00 (Migrated from github.com)

Implement an index function for each pagetype, allowing for distinct index views that take advantage of specifics of certain content.
Use case examples:

  • article index that can be sorted by status (draft, review, published)
  • image index
  • festival index sorted by date
  • webpage index sorted by pagename

Possible implementation:

  • define (mandatory) index method in abstract class Page (in pages.php)
  • implement index method in all datatypes (in datatypes/xxx.php, currently in base.php)
  • extend hypha request HYPHA_SYSTEM_PAGE_INDEX with a list of available indices by looping over the available pagetypes (in pages.php)
Implement an index function for each pagetype, allowing for distinct index views that take advantage of specifics of certain content. Use case examples: - article index that can be sorted by status (draft, review, published) - image index - festival index sorted by date - webpage index sorted by pagename Possible implementation: - define (mandatory) index method in abstract class Page (in pages.php) - implement index method in all datatypes (in datatypes/xxx.php, currently in base.php) - extend hypha request HYPHA_SYSTEM_PAGE_INDEX with a list of available indices by looping over the available pagetypes (in pages.php)
matthijskooijman commented 2019-06-18 09:52:09 +00:00 (Migrated from github.com)

This design should also consider #115 and #142.

This design should also consider #115 and #142.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
harmen/hypha#117
No description provided.