we have recently installed Sites 10 CME and I am trying to integrate some of the extensions in new UI.

Currently i am facing one issue. I need to show context menu tool bar item on component selection but

{currentNode} = UseContextExplorer();

above method returns the current folder but not the actual component selected.

can you please share some example to show the context menu items on component/page selection.

3 Answers 3


With the Tridion Sites 10 UX Update installed, the selected item(s) in the table can be accessed using the new useContentExplorerTable hook:

{ selection } = useContentExplorerTable();

The selection object includes both a set of item ids and an array of items currently selected.

The same API can be used by accessing the selection state in other views (i.e., Activities and Publishing) as well.

An example extension which illustrates the use of this API can be found here:



We reviewed your request and unfortunately how to determine the selected item (or items) in the table, this is not currently supported in the 10.0 Extension API.

we are planning to have a UX update with some additional hotfix which we are planning to release soon.

I will update you once we get some update about the hotfix.

Hope it helps ! Wait for the update soon.


Thanks for reaching out to Tridion Stack Exchange , please refer to the sample link

please share the code snippet so we can review and get back to you.

  • I wanted to show custom tool bar menu on component/ page selection . The menu should display only on component or page selection Oct 24, 2023 at 12:24
  • I have referred rws github repo but it doesn't have any examples for above use case. Oct 24, 2023 at 12:25
  • will review and get back to you
    – Anand N S
    Oct 24, 2023 at 14:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.