View Single Post
Old 04-07-2024, 01:59 PM   #1
flasunco
Junior Member
flasunco began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2024
Device: Kindle Paperwhite
Template language functions not being evaluated

Hey all,

I have the problem that no functions used in a template are evaluated (or parsed). Meaning, the function call itself will be part of the output.

I first tried to get the pubdate year, but now noticed that nothing seems to work (see the capitalize call).

Template:
Code:
{author_sort}/
{series:||{series_index:| #|} - }
{title} ({pubdate})/
{authors} - 
{series:||{series_index:| #|} - }
{title} 

(format_date_field('pubdate', 'yyyy'))
format_date(field('pubdate'), 'yyyy')
capitalize('asdf')

Output:
Code:
Sands, Philippe/ East West Street: On the Origins of "Genocide" and "Crimes Against Humanity" (Apr 2016)/ Philippe Sands - East West Street: On the Origins of "Genocide" and "Crimes Against Humanity" (format_date_field('pubdate', 'yyyy')) format_date(field('pubdate'), 'yyyy') capitalize('asdf')
Any help would be appreciated.
flasunco is offline   Reply With Quote