I figured out how to inject DeckPage into a GUI using javascript. I was wondering if there is an easier way to do this using the extension configuration. For example, here is how a tab can be added to a page view in CME:
<ext:tabpages> <ext:add> <ext:extension name="Name of Tab" assignid="TabName" insertbefore=""> <ext:control>~/tab.ascx</ext:control> <ext:pagetype/> <ext:apply> <ext:view name="PageView"> <ext:control id="MasterTabControl"/> </ext:view> </ext:apply> </ext:extension> </ext:add> </ext:tabpages>
And I see that you can create the <ext:PageDeck> element in the configuration, but so far I have not been able to get the tab.ascx file to display within one.
I am trying to display ascx in the Page view on the Component Presentations tab (select the component presentation), and two PageDecks display the Component Presentation and the Target Groups
Here's what my XML configuration attempt looks like:
<ext:deckpages> <ext:add> <ext:extension name="Target Groups Editor" assignid="TargetGroupEditor" insertbefore=""> <ext:control>~/tab.ascx</ext:control> <ext:pagetype></ext:pagetype> <ext:apply> <ext:view name="PageView"> <ext:container name="ComponentPresentationsTab"> <ext:container name="ComponentPresentationPropertiesTabControl"> <ext:control id="targetGroups"/> </ext:container> </ext:container> </ext:view> </ext:apply> </ext:extension> </ext:add> </ext:deckpages>
I opened the CME code files (Page.aspx, ComponentPresentations.ascx) to get most of these identifiers and scroll through them, but I make a lot of assumptions about what <ext:container> means for and what might be related to <ext:control> .
If someone has done something like this and knows if it is possible, I would really be happy to know the answer ... I would prefer to use XML rather than injecting it through javascript.
Thanks in advance
source share