Инструменты пользователя

Инструменты сайта


en:tcmediainfo:documentation:columns

Columns

Here you define the columns, as they are will be appeared in Total Commander.

<columns>
  <column name="ColumnName" coltype="ColumnOutputType">SourceName</column>
  <column name="ColumnName" type="template">SourceName1 any text SourceName2 SourceNameN</column>
  <separator/>  
  <column name="ColumnName" type="list" list="ListName">SourceName</column>
  <column name="ColumnName" type="script">{script text}</column>
  <column name="ColumnName" type="script">
  <![CDATA[
      {script text} 
  ]]>  
  </column>
  <column name="ColumnName">  
    <unit name="UnitName">SourceName</unit>
  </column>
</columns>

Each <column> node can have attributes:

ColumnName - name (usually english, in order it can be translated with standard Total Commander language file) of column, as this will be appeared in Total Commander.

type=«<single|template|list|script>» - defining, how to treat the node text.

nameName (usually english, in order it can be translated with standard Total Commander language file) of column, as this will be appeared in Total Commander.
typeOptional. Defining, how to treat the node text. Can be one of:

single - the node text is name of source itself.
template - simple template, source names in this text will be replaced by their values.
list - value of source will be searched in list and replaced by some value, if found (refer to Replace lists page)
script - script, written on the embedded scripting language (refer to Overview page).

If this attribute is omitted, text is treated as simple source name (single).

:!: If column contain units, value of this attribute ignoring.
coltypeOptional. Column type. The following values ​​are supported: ft_string or ft_stringw (these two types are equivalent in the plugin), ft_numeric_32, ft_numeric_64, ft_numeric_floating, ft_datetime, ft_date, ft_time. If not specified, ft_stringw is used.

If the attribute is specified, the text of the source field or the result of executing the script will be cast to the specified type. This allows you to enable automatic date or number formatting by means of the Total Commander and opens the possibility of numeric comparison with the column value (where applicable, for example, during search).

:!: When using ft_datetime, the text must be UTC time. Two formats used by MediaInfo are supported: «yyyy-MM-dd HH:mm:ss UTC» and «yyyy-MM-dd HH:mm:ss±HHmm». For the ft_date and ft_time types, the text is interpreted as local time.

Text of node can be wrapped to CDATA section. It's recommend for scripts, in order to not convert special symbols, it also useful for multiline scripts.

<column> node also can contain <unit> subnodes (units). They are handling the same as columns and can have the same attributes. Attribute coltype can be used for override the unit type, but this will work only when displayed on the TC panel. In the search dialogs, the type specified for the column will be used.

Also, you can place <separator/> node between columns, this will appear as separator in Total Commander's menu.

en/tcmediainfo/documentation/columns.txt · Последнее изменение: 2025/07/01 15:50 — loopback

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki