Custom column syntax

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
tcebob
Member
Member
Posts: 178
Joined: 2003-03-23, 22:11 UTC
Location: Sunrise FL, USA

Custom column syntax

Post by *tcebob »

Is there a guide to syntax in custom columns?

I got some help from milo1012 and realized that the syntax is very flexible. Also the editor is well written and allows for experimentation. Is it based on PHP? If so, it could be quite complex.
User avatar
milo1012
Power Member
Power Member
Posts: 1158
Joined: 2012-02-02, 19:23 UTC

Post by *milo1012 »

The syntax is basically identical in all situations where you can use content plugins, including the built-in TC plugin.
  • Custom columns
  • Multi-rename tool (MRT)
  • User-defined help texts (Configuration → Display → Help texts → User-defined)
  • Thumbnail view (Configuration → Thumbnails → Thumbnails:general)
  • Change file attributes
and maybe some other program parts...

But unfortunately it seems to be explained only in the help file at the topic: Dialog box - Multi-rename tool

Code: Select all

[=pluginname.fieldname.unit]
Insert field named "fieldname" from content plugin named "pluginname". "unit" may be an optional unit (if supported by that field), or a field formatter like YMD for date fields. You can use the [=?] Plugin button to insert plugin fields.
[=pluginname.fieldname.unit:4-7]
Same as above, but for partial strings (here: letters 4-7).
Supports the same ranges as the [N] field (see above), including leading spaces or zeroes.
I think it was already noted that it should be included in the next version,
but again to the author: please include a reference to that syntax in the manual for all parts that can possibly use it!
TC plugins: PCREsearch and RegXtract
tcebob
Member
Member
Posts: 178
Joined: 2003-03-23, 22:11 UTC
Location: Sunrise FL, USA

Post by *tcebob »

Thanks again, milo1012.

The detailed topic in help under Dialog box - Multi-rename tool contains the syntax that I was looking for, though it takes some looking to find it. I agree that the other topics that you mentioned deserve their own help along the same lines.

I made a pdf of the help topic and will return it if anyone emails me. More convenient and easier to read than the help window -- and you can't use TC while Help is open.
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

tcebob,
you can't use TC while Help is open
Actually, yes you can or at least you should be able to.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
tcebob
Member
Member
Posts: 178
Joined: 2003-03-23, 22:11 UTC
Location: Sunrise FL, USA

Post by *tcebob »

Right. I was thinking of the custom columns app.
Post Reply