We have developed a GUI extension which invokes custom MVC based application hosted on CM servers.

As part of that custom application, we want to enable select and browse functionality for the components based on particular schema.

How can we achieve this?

  • 1
    your question is not very clear. Could you please give details on what you exactly want to mean with "select and browse" ? Can you also specify what you have already tried or which problems you encounter. – Harald Hoffelinck May 15 '15 at 8:22

I suppose you want to open a item selector popup, with a browser filtered by schema. In order to do this you need to use a filter.

In your extension js code:

 // Open item selector popup
        var filter = {
                ItemTypes: [$const.ItemType.COMPONENT],
                BasedOnSchema: [yourSchema],
                Publication: rootId,
                InPublication: rootId,
                ShowNewItems: false

        p.ItemPopup = $popup.create($cme.Popups.ITEM_SELECT.URL.format(rootId), $cme.Popups.ITEM_SELECT.FEATURES, { filter: filter });
  • This is what we are looking for however not from GUI extension. GUI extension is loading a MVC application, we want to enable this functionality from that MVC application. Can you suggest? – Hiren Kaku May 18 '15 at 17:53
  • 2
    Then maybe you can use CoreService to load the list of items in a custom view of your MVC aplication. You can find something useful about in this extension: sdltridionworld.com/community/2011_extensions/itemselector.aspx Hope it helps. – Julián Hernández May 19 '15 at 8:02
  • That was the last option however we wanted to try if we can use something inbuilt instead of developing our own implementation. – Hiren Kaku May 19 '15 at 17:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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