小编use*_*567的帖子

如何获取该项目最后在Tridion中发布的日期/时间

如何获取项目上次发布的日期/时间.

我试图为PublishInfoData创建对象以便使用PublishedAt.

  PublishInfoData pobj = csClient.Read(pageTCMID, readoptions) as PublishInfoData;
Run Code Online (Sandbox Code Playgroud)

但这会产生错误,例如无法将IdentifiableObjectData转换为PublishInfoData.

请建议.

tridion tridion-2011

7
推荐指数
1
解决办法
215
查看次数

如何在Tridion中的富文本字段的源选项卡内搜索内容

我目前正在使用以下代码在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)

tridion tridion-2011

3
推荐指数
1
解决办法
238
查看次数

History.go(-1)不在IE中工作

我有一个返回按钮,我在我的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;" /> 仍然没有工作.

javascript asp.net

3
推荐指数
1
解决办法
6355
查看次数

标签 统计

tridion ×2

tridion-2011 ×2

asp.net ×1

javascript ×1