news: categories field on news items + category filter on news-list #130
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/deckle#130
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Split out of #77 (News v2 categories). Final slice of the stack: wire categories into the news bundle's editor surface and listing element, on top of the engine multiselect field type (#128) and the taxonomy/term-page enablement (#129).
Decision record from triage on #77: full Hugo-taxonomy scope, categories only, vocabulary curated in sidecar options, work split into stacked issues.
Agent brief follows in the comments.
Blocked by
Agent Brief
Category: enhancement
Summary: Wire categories into the news bundle: a curated
multiselectcategories field on news items, category links in the news templates, and a category filter param on the news-list element.Current behavior (once the blockers land):
The engine has a
multiselectfield type restricted to page-type fields (#128), andharness add newsenables acategoriestaxonomy with working term and overview pages (#129). But news items still have no editor-visible categories — front matter must be hand-authored — and the news-list element can only filter by section and limit.Desired behavior:
categoriesfield of typemultiselectwith a small starter vocabulary inoptions(site owners edit the sidecar to change the vocabulary — that is the curation model decided on #77). The field key must be exactly the taxonomy key (categories) so the front-matter list the editor writes feeds the Hugo taxonomy directly.categoryparam of typeselectwith the same vocabulary inoptions. When set, only items carrying that category are listed (the limit applies after filtering); when unset, behavior is unchanged. The filter is single-valued by design: element params are shortcode scalars.Key interfaces:
fields) and news-list element sidecar (params)Acceptance criteria:
categoryset lists only items carrying that category, still excluding drafts and respectinglimit; withcategoryunset the output is identical to beforeOut of scope: