Skip to content

CD: Add Filtering by BaseType #32600

Closed

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 baseTypes

Check Multiselect component

If it's more doable, create a component for this. Suggested name: dot-content-drive-baseType-selector

Acceptance Criteria

  • Filter by BaseType should work on current folder context (Selected Folder + Site)

  • This filter should be reflected on the URL, on filters queryParam as baseType and separated by comma when user multiselect, check this function

  • Ex on store: { filters: { baseType: ["1", "2", "3"] } }

  • Ex on URL: content-drive?filters=baseType:1,2,3;

  • This should be part of the component dot-content-drive-toolbar

  • It should match the figma design

Technical Reference

We can use the /api/v1/contenttypes/baseTypes GET endpoint to fetch for baseTypes.

Beware that the Content API endpoint does not allow searching by name: +baseType: CONTENT OR DOTASSET but by number +baseType:1 OR 2 OR 3 check the docs for more information.

We probably will need to make a map as BASE_TYPE_NUMBER_TO_NAME to handle this issue on Content Type Selector so we can use the name that the endpoints give us. But to add it to the filters in the store, we need the number.

Base Types fetch, should be handled by the component only on initialization, this value is a System value and should not change on runtime.

Design Reference

Image Image

Proposed Priority

Priority 3 - Average

Activity

  1. moved this from New to Current Sprint Backlog in dotCMS - Product Planningon Aug 13, 2025
  2. moved this from Current Sprint Backlog to In Progress in dotCMS - Product Planningon Aug 15, 2025
  3. github-actions commented on Aug 18, 2025

    @github-actions
    Contributor
  4. added a commit that references this issue on Aug 19, 2025
    f071314
  5. removed their assignment
    on Aug 19, 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