Skip to content

CD: Add Filtering by Content Type #32601

Description

@zJaaal

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 filters queryParam as contentType and 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

Image Image

Proposed Priority

Priority 3 - Average

Activity

  1. self-assigned this
    on Aug 13, 2025
  2. moved this from New to In Progress in dotCMS - Product Planningon Aug 14, 2025
  3. github-actions commented on Aug 14, 2025

    @github-actions
    Contributor
  4. moved this from In Progress to In Review in dotCMS - Product Planningon Aug 21, 2025
  5. removed their assignment
    on Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions