如何水平放置多个自定义按钮 - 在tridion功能区中一个在另一个下方.
就像我们有登记入住,退房,撤消退房按钮.
我尝试通过将它们放在一个组中来创建多个自定义按钮,但默认情况下它们并排排列,而不是一个在另一个之下.
目前我们有比较功能,比较给定项目的版本.
现在,如何在选择时比较任何两个给定项目(使用类似模式的两个组件;或页面)?
我试图提供源和目标项目的tcmid
"http://sdltridion/WebUI/Editors/CME/Views/Popups/Compare/CompareDialog.aspx#root=<tcm-source>&id1=<tcm-destination>&id2=&popup=UID_393" 但它只考虑根,即tcm:56-1520,并提供最新版本和前一版本的tcm:56-1520项目之间的比较.
如何在使用类似模式实现的两个不同组件之间进行比较?
我想从Tridion CME 获取并显示所选项目的itemxml.
当我在浏览器中提供tcm id时,我能够从我的VM服务器获取Itemxml.
但是,我想从Tridion GUI Extension获得相同的信息.
我能够获得所选项目tcm id.有没有办法使用coreservice获取itemxml ?
还是有其他方法可以得到这个吗?
如何获取所选项目的版本号(组件/页面)
我使用以下代码
VersionedItemData verinfo=csClient.Read(<selecteditemid>, new ReadOptions())
as VersionedItemData;
<selecteditemid> = Component/Page id
Run Code Online (Sandbox Code Playgroud) 要在SDL Tridion功能区工具栏中创建按钮,我们在哪里可以找到已存在控件的扩展相关信息(如配置文件,js文件),如签入,签出,撤消签出,以便我们可以将它们用作一个参考?
这是我为检索组成员而生成的xml.我需要从这个xml中获取值tech\abc1234.
<tcm:Trustee xlink:href="tcm:0-61-65552" xlink:type="simple" xlink:title="tech\abc1234" Type="65552" Icon="T65552L0P0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:tcm="http://www.tridion.com/ContentManager/5.0"></tcm:Trustee>
Run Code Online (Sandbox Code Playgroud)
但是当我尝试获取属性值时:
XElement userList = csClient.GetListXml(grpId, members);
foreach (var eachuser in userList.Elements())
{
logdetails(eachuser.Attribute("xlink:title").Value.ToString());
}
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
error The ':' character, hexadecimal value 0x3A, cannot be included in a name.
根据条件,我需要将项目(组件/页面)从当前发布移动到指定的发布.
任何人都可以建议我这方面的方法.提前致谢.
如何在组件/页面右键单击上下文菜单中创建按钮.
我尝试通过引用"http://www.julianwraith.com/2010/10/helloworld-extension-for-tridion-2011/"中提到的配置我的extension.config文件,但我无法看到任何可用的按钮.
有谁能建议我.
我有一个动态生成的字符串/directory/folder/filename.html
我怎样才能删除最后一部分,即/filename.html.
我希望我的输出为/ directory/folder /.
我创建了一个usercontrol,它有两个按钮,一个在另一个下面
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ViewItemsGroup.ascx.cs" Inherits="SDL.Examples.UI.Controls.ViewItemsGroup" %>
<%@ Import Namespace="Tridion.Web.UI" %>
<c:RibbonItemsGroup runat="server" ID="RibbonItemsGroup">
<c:RibbonButton runat="server" CommandName="ViewStaging" Title="View in Staging" Label="View In Staging" IsSmallButton="true" ID="ViewStagingBtn" />
<c:RibbonButton runat="server" CommandName="ViewLive" Title="View in Live" Label="View in Live" IsSmallButton="true" ID="ViewLiveBtn" />
</c:RibbonItemsGroup>
Run Code Online (Sandbox Code Playgroud)
在extension.config中,我引用了usercontrol,如下所示.
<ext:extension assignid="ViewItemsGroup" groupid="EditGroup" name="View" pageid="HomePage" insertbefore="PublishGroup">
<ext:group>~/Controls/ViewItemsGroup.ascx</ext:group>
<ext:dependencies>
<cfg:dependency>My.Theme</cfg:dependency>
</ext:dependencies>
<ext:apply>
<ext:view name="DashboardView">
<ext:control id="DashboardToolbar" />
</ext:view>
<ext:view name="PageView">
<ext:control id="ItemToolbar" />
</ext:view>
</ext:apply>
</ext:extension>
Run Code Online (Sandbox Code Playgroud)
我是否还需要在extension.config中包含我的按钮详细信息(在ID之类的usercontrol中提到)?是否需要添加到<ext:command> ---- </ext:command> 任何其他地方.
创建的usercontrol,我只是放在extension.config,.js中,并在我的extension.config文件中引用ascx.我是否需要将usercontrol放在任何其他文件夹中?