Quantcast
Channel: MobileRead Forums
Viewing all articles
Browse latest Browse all 50080

Template language functions not being evaluated

$
0
0
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.

Viewing all articles
Browse latest Browse all 50080

Latest Images

Trending Articles



Latest Images