【发布时间】:2012-10-02 23:30:44
【问题描述】:
我目前正在使用以下代码在 Tridion 中进行搜索。它正在根据输入获取项目(组件和页面)。
问题:在富文本字段中,我们有设计、源代码和预览选项卡。以下代码仅搜索“设计”选项卡中存在的内容。我还需要源选项卡内容 在执行搜索时要考虑。
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);
【问题讨论】:
-
您要搜索哪些内容在源选项卡中,而不是在设计选项卡中?
标签: tridion tridion-2011