I would like an addition to the request passed to widgets in content studio:
exports.get = function (req) {
req.params.contentId // This is whats supported today: ID of last selected node in Content Studio
req.params.selectedNodes // This is the parameter I would like. An array of IDs of nodes selected
}
//selectedNodes:
[
"860738ad-75b0-45ed-84bc-c68ac5993e1b",
"148d5be5-9e7c-4438-9001-e1fc0dba67d2",
"a4e10e4c-54ce-45e8-a89a-db9a87c2bd4e"
]
I request this, because I would like to make widgets where you can do bulk operations like translate nodes, set owner/author, Import info from CRM etc.
Yes, the “id” vs [“id”,“id”] challenge is something we often have to solve, but its not an issue for me. Alternatively you can omit the params.selectedNodes if only one node is selected
I don’t expect there to be any issues with this. If/when we change this, then all ids of selected nodes will be passed to widget as multiple parameters of the same name (contentId) in the query string (as opposed to just one parameter now).