I tried to modify the formatted title, it works, but i can't copy this string, it's only for display.
You can copy string if you use HTML display (shortcut F12).
I also already tried the virtual field but it doesn't work. However it's a good new that this field will be displayed in the next update.
The value of a virtual custom field can only be displayed in HTML display (F12), not in default edit mode (the field can not be edited).
Can you explain the simpliest way
- Switch in HTML display (F12)
- Right click in HTML display and click on "edit"
- Modify the template to add your title like you want. For example in HTMLDefaultTemplate, add this code after a "</tr>":
Code: Select all
<tr>
<td class="gr">My title:</td>
<td class="wh">$ITEM_ORIGINALTITLE [$ITEM_YEAR] [$ITEM_DIRECTOR]</td>
</tr>
- Save the template
- Finish
How to create the script
- Create a custom field of type string with tag = MyTitle
- Open scripting window (Shift+F6)
- Do not select a script (click in empty zone)
- Click on "Editor" (at top left)
- Paste this code:
Code: Select all
program FillMyTitle;
var
title: string;
begin
title := GetField(fieldOriginalTitle);
if GetField(fieldYear) <> '' then
title := title + ' [' + GetField(fieldYear) + ']';
if GetField(fieldDirector) <> '' then
title := title + ' [' + GetField(fieldDirector) + ']';
SetCustomField('MyTitle', title);
end.
- Click on "Scripts" (at top left)
- Select "All" in movies to include (at right)
- Run the script
- Finish
Note: Replace OriginalTitle by TranslatedTitle if it is what you want.
Soulsnake.