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 Answer
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:
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>
-
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.– BryanDAug 19, 2013 at 15:43
-
I think I found it. D:\APPS\Tridion\web\WebUI\Editors\ListViewTCM\ListViewTcm.config– BryanDAug 19, 2013 at 15:50
-
3It 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> Aug 19, 2013 at 15:52
-
2I would avoid changing Tridion files directly and try to do it via an extension. Aug 19, 2013 at 15:53