Repository navigation
Closed as duplicate
Closed as duplicate
Copy link
Description
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 thanlistorcard, 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
cardsees the grid view. - A user with no remembered view who opens the Drive through a tool set to
listsees the table view. - A user who already chose a view in this browser sees that view, whatever the tool's
dataViewModesays. - An empty or unknown
dataViewModeopens 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
dataViewModeas it does today, and how it is stored does not change.
Additional Context
- Depends on Add a grid view to Content Drive #37930 (grid view and remembered view), which must ship first.
- Spec for Add a grid view to Content Drive #37930:
specs/37930-content-drive-grid-view/spec.md(PR docs(spec): Content Drive grid view as an alternative to the table #37959). Its Clarifications record why this was split out. - The custom tool catalog work ([Task] Tools:
PortletID.TOOLS, tools catalog endpoints and custom-tool gate on/v1/portlet#37574) returnsdataViewModeaslistorcard.
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
zJaaal commentedon Oct 9, 2026
This was added to #37931