Tridion user interface on a dynamic page

I created a page dynamically that queries the broker database and based on the filter displays the presentation of the component at runtime. I used the Tridion UI on the page to edit components.

Now that the content on the page is dynamic, I don’t want to use the Create and Paste Content functionality, as it will create the component and it will try to paste it on the page that I don’t want here.

Is there a way so that I can disable the "Insert Content" and "New Page" functionality for the page using dynamic CP?

All I want is the “Create Content” feature, which uses the required content type.

+5
source share
3 answers

The buttons on the ribbon toolbar are associated with the command. By clicking on the button, the command is called. There is a supported way to extend existing commands. This way, you can create command extensions for Insert Conter and New Page Buttons that override the isEnabled method.

+2
source

I believe that there is no way to use this parameter for any type of template. You may need to add the Extn GUI to disable this option.

+1
source

Meenakshi. You can disable and / or hide these buttons / functions with configuration settings. As Vikas points out, from the point of view of disabling them in a certain context, you have to look at the GUI extension, which, when presenting the interface, checks the context of the / cps page and acts accordingly.

This link contains some useful guidelines for GUI extensions in general .: How to create a custom button in the Tridion ribbon

+1
source

All Articles