![]() |
#16 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#17 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
BTW: having one list first and then the items from the other is the defined behavior of merge_lists. I suggest that to learn more about tempates, you look at the template language documents: http://manual.calibre-ebook.com/template_lang.html |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 352
Karma: 103850
Join Date: Apr 2011
Device: Kindle NT
|
I am trying but all these templates are still very confusing. And I cannot even find the template merge_lists in that link. I find list_union which is for merging apparently.
I don't get the basics yet. The guide is a little complicated. I'm not sure I will ever learn how to use the more complicated template language if it isn't directly written how exactly to make one thing or another. Quote:
#textmult is my custom column? As I cannot find "textmult" in template guide. At the moment I have: {#shelf:'merge_lists(field('tags'), $, ',')'} And in this I don't understand what $ does. Basically I would like some basics of the language, symbols and their meaning etc. Last edited by Noughty; 08-15-2011 at 04:29 PM. |
|
![]() |
![]() |
![]() |
#19 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Those are parameters to the function identified by the ( ) pairs and are documented for each function.
The function syntax of template programs is similar to what one finds in excel and similar programs. The functions are different, but the way the functions are written and used are not. Calibre's function syntax is documented here. The functions are documented here. Quote:
Quote:
Quote:
That template is using template program mode and consists of two functions, merge_lists() (obsolete, replaced by list_union) that uses the result (return value) of field() as its first parameter. $ is the second parameter to merge_lists, and ',' is the third parameter. |
|||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
0.7.46 and custom columns | meme | Library Management | 4 | 02-21-2011 04:21 AM |
Creating columns | Jabby | Library Management | 0 | 02-04-2011 05:46 PM |
Two columns broken in 7.24 | pollito pito | Calibre | 12 | 10-28-2010 06:00 PM |
I'm looking to convert 2 columns to 1 but ... | SeaBookGuy | 1 | 10-17-2010 08:19 PM | |
Columns | darkpoet | ePub | 8 | 09-09-2009 10:17 PM |