如何获取项目上次发布的日期/时间.
我试图为PublishInfoData创建对象以便使用PublishedAt.
PublishInfoData pobj = csClient.Read(pageTCMID, readoptions) as PublishInfoData;
Run Code Online (Sandbox Code Playgroud)
但这会产生错误,例如无法将IdentifiableObjectData转换为PublishInfoData.
请建议.
我目前正在使用以下代码在Tridion中搜索.它根据输入获取Items(Components和Pages).
问题:在富文本字段中,我们有设计,源和预览选项卡.以下代码仅搜索"设计"选项卡中的内容.我还需要在执行搜索时考虑源选项卡内容.
CoreServiceSession client = new CoreServiceSession();
SessionAwareCoreServiceClient csClient = client.GetClient();
var find = new SearchQueryData
{
Description = "Universe"
ItemTypes = new ItemType[] { ItemType.Page, ItemType.Component }
);
IdentifiableObjectData[] foundItems = csClient.GetSearchResults(find);
Run Code Online (Sandbox Code Playgroud) 我有一个返回按钮,我在我的aspx页面中使用了以下代码
<input type="button" runat="server" value="Back" onclick="Javascript:history.go(-1); return=false;" />
问题是它在Firefox中工作得很好但是当我在IE中尝试它时它不起作用.有人可以分享他们的想法.
我写错return=false;了实际的代码是:
<input type="button" runat="server" value="Back" onclick="Javascript:history.go(-1); return false;" /> 仍然没有工作.