3

How do I change the name, add or remove a column in the CME GUI of Tridion 2011. I believe this is an extension but not sure which file to modify. I am referring to the column headers that show up in the main pane of a publication while in content management. As of now, I see Name, Type, Modified......

1

1 Answer 1

3

You should create a UI Extension in order to add an extra column to your lists. It is a documented extension point as you can see here:

http://sdllivecontent.sdl.com/LiveContent/web/pub.xql?action=home&pub=SDL_Tridion_2011_SPONE&lang=en-US#addHistory=true&filename=AddingANewColumnToAListView.xml&docid=task_E4EFBE6E5CA24C01B2531FB15AE95AE2&inner_id=&tid=&query=&scope=&resource=&eventType=lcContent.loadDoctask_E4EFBE6E5CA24C01B2531FB15AE95AE2

You should be careful when you add columns to your lists in CME since it could be an expensive extension point, review the need and the performance issues that you might get by adding this extra column. For instance if you have to execute a query to retrieve an extra column value per row, it would be expensive.

All the lists in the CME receive data in the format of <tcm:Item ... /> in order to feed your new column you will need to add a new attribute to this element via some logic like a Data Extender.

If you want to rename an existing column, it can be easily done by updating the XML definition list (not supported by the way).

<?xml version="1.0"?>
<list:listDefinition xmlns:list="http://www.sdltridion.com/2009/GUI/extensions/List">
    <list:selectornamespaces>
        <list:namespace prefix="tcm" uri="http://www.tridion.com/ContentManager/5.0"/>
    </list:selectornamespaces>
    <list:rows>
        <list:itemSelector>/*/*</list:itemSelector>
        <list:titleSelector>@Title</list:titleSelector>
        <list:idSelector>@ID</list:idSelector>
        <list:stateSelector>@Icon</list:stateSelector>
        <list:thumbnailIconSelector>@Icon</list:thumbnailIconSelector>
        <list:emptyListMessage>{Resources: Tridion.Web.UI.Strings, ThereAreNoItemsInThisView}</list:emptyListMessage>
    </list:rows>
    <list:columns>
        <list:column id="IconColum" type="icon" title="" width="20" enableresizing="false" enablesorting="false" enablefiltering="false" selector="@Icon" />
        <list:column id="TitleColumn" type="data" title="**[COLUMN RENAMED]**" selector="@Title" enablefiltering="true" columnfilter="group"/>
        <list:column id="DescriptionColumn" type="data" title="**[COLUMN RENAMED]**" selector="@Description"  enablefiltering="true" columnfilter="group"/>
    </list:columns>
</list:listDefinition>
4
  • I guess I should have limited my question. For now, I am trying to remove a column. It looks like adding one is intense. How would I remove a column? We have a column called "schema" I am not sure why we need it. It is not returning anything. So, I would like to remove the "Schema" column. Thank you.
    – BryanD
    Aug 19, 2013 at 15:43
  • I think I found it. D:\APPS\Tridion\web\WebUI\Editors\ListViewTCM\ListViewTcm.config
    – BryanD
    Aug 19, 2013 at 15:50
  • 3
    It also can be done via a GUI extension.<ext:lists> <ext:remove> <ext:extension id="SchemaColumn" name="SchemaColumn"> <ext:view name="[YourViewName]"> <ext:control id="[YourControlId]" /> </ext:view> </ext:extension> </ext:remove> </ext:lists>
    – Eric Huiza
    Aug 19, 2013 at 15:52
  • 2
    I would avoid changing Tridion files directly and try to do it via an extension.
    – Eric Huiza
    Aug 19, 2013 at 15:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.