扩展配置文件中的SDL Tridion GUI扩展添加组页面
我已经知道了如何使用javascript将DeckPage注入GUI。我想知道使用扩展配置是否有更简洁的方法来实现这一点。例如,以下是如何将选项卡添加到CME中的页面视图:扩展配置文件中的SDL Tridion GUI扩展添加组页面,tridion,Tridion,我已经知道了如何使用javascript将DeckPage注入GUI。我想知道使用扩展配置是否有更简洁的方法来实现这一点。例如,以下是如何将选项卡添加到CME中的页面视图: <ext:tabpages> <ext:add> <ext:extension name="Name of Tab" assignid="TabName" insertbefore=""> <ext:control>
<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>
~/tab.ascx
我发现可以在配置中创建一个
项,但到目前为止,我还没有成功地在其中显示文件tab.ascx
我试图在页面视图中的Component Presentations(组件演示文稿)选项卡(选择一个组件演示文稿)中显示ascx,两个页面组显示为“Component presentation”(组件演示文稿)和“Target Group”(目标组)
以下是我尝试的XML配置:
<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>
~/tab.ascx
我已经打开了CME代码文件(Page.aspx,ComponentPresentations.ascx)来获取这些ID中的大部分,并对它们进行了深入研究,但是我对
的用途以及与
相关的内容做了很多假设
如果有人做过类似的事情,并且知道这是否可能,我真的很高兴知道答案。。。我更喜欢使用XML,而不是通过javascript注入
提前谢谢我相信那还是一张账单。尝试:
<ext:tabpages>
<ext:add>
<ext:extension insertbefore="targetGroups" assignid="TargetGroupEditor" name="Target Groups Editor">
<ext:control>~/tab.ascx</ext:control>
<ext:pagetype>TargetGroupEditor</ext:pagetype>
<ext:apply>
<ext:view name="PageView">
<ext:control id="ComponentPresentationPropertiesTabControl" />
</ext:view>
</ext:apply>
</ext:extension>
</ext:add>
</ext:tabpages>
~/tab.ascx
TargetGroupEditor
我以前添加了一些版面
这些都没有使用ext:container元素,但在其他方面,XML看起来与您的类似
您是否尝试过不使用这些功能而只使用“targetGroups”控件?谢谢阿尔文,您完全正确。虽然我想添加到deckpages,但这仍然必须使用配置:)谢谢peter。我很想看看你的例子,用在CME上