Repository navigation
Description
Important
This issue is blocked by #32953
User Story
As an user I want to be able to filter the Folders Context (Site + Selected Folder) using a dropdown to multiselect contentTypes
Check Multiselect component
If it's more doable, create a component for this. Suggested name: dot-content-drive-contentType-selector
Acceptance Criteria
-
Filter by ContentType should work on current folder context (Selected Folder + Site)
-
It should populate according the BaseType
-
This filter should be reflected on the URL, on
filtersqueryParam ascontentTypeand separated by comma when user multiselect, check this function -
Ex on store:
{ filters: { contentType: ["Blog", "News", "Activity"] } } -
Ex on URL:
content-drive?filters=contentType:Blog,News,Activity; -
This should be part of the component
dot-content-drive-toolbar -
It should match the figma design
Technical Reference
You can use /api/v1/contenttype?type=<your-type>&filter=<keyword>&host=<current-site-in-store> GET endpoint to fetch for Content Types.
The type search param accepts a single value that corresponds to the name property value we see in the following GET endpoint /api/v1/contenttype/basetypes
We need to support multiple values that's why we created #32991 but It's enough to fetch all Content Types meanwhile we resolve that issue.
Fetch action, should be handled by the component and be reactive to the baseType values on filters, remember that this value will be an string number array, in order to fetch by type we need the name of the baseType, check Technical Reference section on this issue.
Design Reference
Proposed Priority
Priority 3 - Average
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
github-actions commentedon Aug 14, 2025
PRs linked to this issue
feat(content-drive): Add Content Type Filtering (#33013)