Quote:
Originally Posted by chaley
13 Nov 2023: (in calibre source)
New template function for links - get_link(field_name, field_value) -- fetch the link for field field_name with value field_value. If there is no attached link, return the empty string.
Examples:
The following returns the link attached to the tag Fiction:
Code:
get_link('tags', 'Fiction')
This template makes a list of the links for all the tags associated with a book in the form value:link, ...:
Code:
program:
ans = '';
for t in $tags:
l = get_link('tags', t);
if l then
ans = list_join(', ', ans, ',', t & ':' & get_link('tags', t), ',')
fi
rof;
ans
|
Thank you for all your templates and your work with Calibre