1

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
  • 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. Commented May 15, 2015 at 8:22

1 Answer 1

3

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 = {
            conditions:
            {
                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 });
3
  • 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
    Commented May 18, 2015 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. Commented May 19, 2015 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
    Commented May 19, 2015 at 17:33

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.