List view column filters

About this task

In the Content Manager Explorer, you can use filters in the column headers to sort items displayed in the list view:

You can configure the list view column filters as follows:

  • You can configure column filters groups in the CME2011.config file.
  • You can configure the filters each column uses in the ListItems.xml file.

Procedure

  1. Go to your SDL Tridion installation \Tridion\web\WebUI\Models\CME\Configuration directory.
  2. Open CME2011.config in a text editor.
  3. In the <clientconfiguration> section, add or modify the <Grouping> filters. Each <Grouping> element represents a filter and contains the following child elements:
    • The <Title> element is the name displayed in the interface.
    • The <Characters> element contains a string of characters on which you can sort the column on.
    <clientconfiguration>
       <ColumnFilters>
          <Groupings>
             <Grouping>
                <Title>0 - 9</Title>
                <Characters>0123456789</Characters>
             </Grouping>
             <Grouping>
                <Title>A - H</Title>
                <Characters>abcdefgh</Characters>
              </Grouping>
              <Grouping>
                <Title>I - P</Title>
                <Characters>ijklmnop</Characters>
              </Grouping>
              <Grouping>
                <Title>Q - Z</Title>
                <Characters>qrstuvwxyz</Characters>
              </Grouping>
           </Groupings>
      </ColumnFilters>
    </clientconfiguration>
  4. Go to your SDL Tridion installation \Tridion\web\WebUI\Editors\CME\Xml\ListDefinitions directory.
  5. Open ListItems.xml in a text editor.
  6. Each <list:column> element in the <list:columns> section defines amongst others, which filter the column uses. For example:
    • columnfilter="group" uses the filter <Groupings> defined in the CME2011.config file
    • columnfilter="value" uses the item value
    <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="{Resources: Tridion.Web.UI.Strings, Name}" selector="@Title" enablefiltering="true" columnfilter="group" />
      <list:column id="NamedType" type="data" title="{Resources: Tridion.Web.UI.Strings, Type}" dictionary="ItemTypes" selector="@Type" enablefiltering="true" columnfilter="value" />  
      <list:column id="FromPub" type="data" title="{Resources: Tridion.Web.UI.Strings, FromPublication}" selector="@FromPub" enablefiltering="true" columnfilter="value"/>
      <list:column id="Modified" type="data" title="{Resources: Tridion.Web.UI.Strings, Modified}" selector="@Modified" translate="Tridion.Utils.Localization.TranslateDate" enablefiltering="true" columnfilter="daterange" />
    </list:columns>