Can the list of favorites be extended using a Data Extender?

六眼飞鱼酱① 提交于 2019-12-06 19:17:57

问题


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?


回答1:


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.

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>

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



来源:https://stackoverflow.com/questions/10486726/can-the-list-of-favorites-be-extended-using-a-data-extender

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!