Hi !
I'm looking for a way to have a personalized field that could display a string which would be like that : "nameOfTheFilm [year] [directors]" cause I name my movies like that and it's tedious to do it manually.
Any suggestion ?
Thanks,
tdm
[Resolved] Naming films easily with a personalized field
[Resolved] Naming films easily with a personalized field
Last edited by tdm on 2013-10-12 13:35:48, edited 1 time in total.
Hi,
There are some differents way to do that.
The simpliest way is to modify HTML template for display to add the string which will be like you want using existing movie fields.
An other simple way is to modify the formatted title in preferences to show formatted title like you want.
An advanced way is to create a virtual custom field and set the template like you do for the formatted title in preferences and add this field in HTML template to show the value (But the value of a virtual custom field is not shown in HTML display for now, this problem will be fixed in next update of AMC 4.2 beta).
A more advanced way is to create a normal custom field and a little script to fill this custom field like you want for all your movies.
What do you prefer ?
Soulsnake.
There are some differents way to do that.
The simpliest way is to modify HTML template for display to add the string which will be like you want using existing movie fields.
An other simple way is to modify the formatted title in preferences to show formatted title like you want.
An advanced way is to create a virtual custom field and set the template like you do for the formatted title in preferences and add this field in HTML template to show the value (But the value of a virtual custom field is not shown in HTML display for now, this problem will be fixed in next update of AMC 4.2 beta).
A more advanced way is to create a normal custom field and a little script to fill this custom field like you want for all your movies.
What do you prefer ?
Soulsnake.
Thanks for answering so quickly !
I tried to modify the formatted title, it works, but i can't copy this string, it's only for display.
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.
Can you explain the simpliest way and how to create the script ? I'll try them both and see which one I prefer.
tdm
I tried to modify the formatted title, it works, but i can't copy this string, it's only for display.
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.
Can you explain the simpliest way and how to create the script ? I'll try them both and see which one I prefer.
tdm
You can copy string if you use HTML display (shortcut F12).I tried to modify the formatted title, it works, but i can't copy this string, it's only for display.
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).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.
- Switch in HTML display (F12)Can you explain the simpliest way
- 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>
- Finish
- Create a custom field of type string with tag = MyTitleHow to create the script
- 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.
- Select "All" in movies to include (at right)
- Run the script
- Finish
Note: Replace OriginalTitle by TranslatedTitle if it is what you want.
Soulsnake.