Skip to content

Content Drive: open in the view set by a custom tool's dataViewMode #37964

Description

@rjvelazco

Description

Custom tools store a view mode, dataViewMode (list or card), which Content Search reads today (view_contentlets.jsp opens in cards when it is card). Content Drive ignores it.

#37930 adds a grid view to Content Drive next to the table, and remembers each user's choice in their browser. Reading the tool's dataViewMode was deliberately left out of #37930 to keep that PR small. This ticket picks it up.

The gap: custom tools open Content Search (/c/<tool id>), not Content Drive, so the Drive never receives a tool's settings today. Making the setting reach the Drive is part of this ticket.

Agreed so far:

  • The user's remembered view (from Add a grid view to Content Drive #37930) wins over the tool's dataViewMode. The tool's setting only decides the view for users who have not chosen one in that browser.
  • An empty dataViewMode, or any value other than list or card, counts as unset, and the Drive falls back to the table.

Open question (to settle when this is picked up): how a custom tool brings users into Content Drive. Options discussed:

Option What it means
Per-tool setting A new tool setting chooses between Content Search and Content Drive.
All tools open the Drive Every custom tool opens Content Drive instead of Content Search.
Only on redirect Tools keep opening Content Search. When a user is redirected to the Drive (Content Search not in their menu), the tool's view mode goes with them.

Acceptance Criteria

  • The way a custom tool brings users into Content Drive is decided and documented on this issue.
  • When a custom tool opens Content Drive, the Drive receives that tool's dataViewMode.
  • A user with no remembered view who opens the Drive through a tool set to card sees the grid view.
  • A user with no remembered view who opens the Drive through a tool set to list sees the table view.
  • A user who already chose a view in this browser sees that view, whatever the tool's dataViewMode says.
  • An empty or unknown dataViewMode opens the table for users with no remembered view.
  • Opening Content Drive directly (not through a tool) behaves exactly as Add a grid view to Content Drive #37930 defines.
  • Content Search keeps reading dataViewMode as it does today, and how it is stored does not change.

Additional Context

Activity

  1. added theissue type on Oct 9, 2026
  2. zJaaal commented on Oct 9, 2026

    @zJaaal
    Member

    This was added to #37931

  3. reopened this on Oct 9, 2026
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