View Single Post
Old 04-14-2021, 04:00 AM   #1
jmendes
Junior Member
jmendes began at the beginning.
 
jmendes's Avatar
 
Posts: 5
Karma: 10
Join Date: Sep 2019
Location: Portugal
Device: ipad, epub
The footer template (cover generation settings)

Hi,
I want to add a line with the publisher information to the footer template.
How can I do it?

Now the footer template looks like:
Quote:
program:
# Show at most two authors, on separate lines.
authors = field('authors');
num = count(authors, ' & ');
authors = sublist(authors, 0, 2, ' & ');
authors = list_re(authors, ' &amp; ', '(.+)', '<b>\1');
authors = re(authors, ' &amp; ', ' <br>');
re(authors, '&amp; &amp;', ' <br>')
If I add the two lines in bold, the only field that appears is the publisher.

Quote:
program:
# Show at most two authors, on separate lines.
authors = field('authors');
publisher = field('publisher');
num = count(authors, ' &amp; ');
authors = sublist(authors, 0, 2, ' &amp; ');
authors = list_re(authors, ' &amp; ', '(.+)', '<b>\1');
authors = re(authors, ' &amp; ', ' <br>');
re(authors, '&amp; &amp;', ' <br>');
re(publisher, '&amp; &amp;', ' <br>');
Thank you in advance,
Jose
jmendes is offline   Reply With Quote