可以使用 Data Extender 扩展收藏夹列表吗? [英] Can the list of favorites be extended using a Data Extender?

查看:20
本文介绍了可以使用 Data Extender 扩展收藏夹列表吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个数据扩展器,用于显示所有列表视图中每个项目的版本号.显然收藏夹"是不同的,因为我们的数据扩展器在那里不起作用.

We have a data extender that displays the Version number of each item in all list views. Clearly "Favorites" is different, since our data extender doesn't work there.

那么,我们可以为收藏夹列表做一个数据扩展吗?如果没有,将版本号信息添加到项目以显示在列表中的替代方法是什么?

So, can we do a data extender for the Favorites list? If not, what's the alternative to add the version number information to the item for display in the list?

推荐答案

是的.收藏夹列表可以通过 DataExtender 进行扩展,类似于大多数其他数据结构的扩展方式.由于收藏夹旨在成为 Tridion Content Manager 数据模型中其他项目的快捷方式,因此它们具有相同的可用属性.

Yes. The Favorites List can be extended through a DataExtender, similar to how most other data structures can be extended. Since favorites are meant to be shortcuts to other items in the Tridion Content Manager data model, they have the same properties available on them.

这是我的 Building Blocks 文件夹中项目列表的示例:

This is an example of a list of items in my Building Blocks folder:

<tcm:ListItems Managed="10682" ID="tcm:1-1-2" 
               xmlns:tcm="http://www.tridion.com/ContentManager/5.0">
    <tcm:Item ID="tcm:1-5-2" Title="Component Templates" Type="2" 
              Modified="2011-11-18T11:09:45" IsNew="false" Icon="T2L0P0" 
              IsPublished="false" Lock="0" IsShared="false" IsLocalized="false" 
              Trustee="tcm:0-0-0" Allow="269085696" Deny="96" Managed="10682" />
</tcm:ListItems>

这是一个收藏夹列表的例子:

This is an example of a FavoritesList:

<tcm:ListFavoriteItems xmlns:tcm="http://www.tridion.com/ContentManager/5.0">
    <tcm:Item xmlns:tcm="http://www.tridion.com/ContentManager/5.0" 
        ID="cme:0-41336414110293-shortcut" Title="Folder" RefID="tcm:1-57-2" 
        Path="\Content Management\Pub1\Building Blocks\Folder" Icon="T2" 
        Created="2012-5-7T14:8:30" HasChildren="false" Allow="24576" />
</tcm:ListFavoriteItems>

因此,除了根元素名称之外,这看起来与您可以从 DataExtender 中的 Tridion 返回的其他列表非常相似.

So aside from the root element name, this looks pretty similar to other lists you can get back from Tridion in your DataExtender.

这篇关于可以使用 Data Extender 扩展收藏夹列表吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆