![]() |
#1 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 164
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
|
![]()
I am rather new to calibre, but I think it will give me the flexibility I have been looking for. As I am new, I am still trying to figure out what will work the best for me.
I have been using hierachical custom columns, but I do not like how it shows the entire hierarchy in the columns view. Is it possible to have the columns view only show the last tag in the hierarchary? For example, say I have a story in the category fantasy.magic.dragons for a fantasy story with magic where the main characters are dragons (I am not using these tags, but it gets my idea across). When I look at the columns, I only want to see the last item, dragons. I have a lot of stories that fit into many hierachy tags like this. When I look at the columns, I can only see the beginning of the tags (ex: fantasy.magic). I will be using this on a 10.1 inch tablet, I have limited amount of space to see everything, so I cannot just extend the column to see it all. I had thought about creating one big custom column that would have all the different ways I sort my stories and then use a composite column to take out the relevant tags. For example, I would have columns that would have a category which would have fantasy, a category which would have magic, and a category which would have dragons. But from what I read, that doesn't seem to be what composite columns are for. I don't really understand composite columns and will probably keep reading the forums until I do. Instead I am hoping there is a way to change what shows in the columns. - Jade Aislin ![]() ![]() |
![]() |
![]() |
![]() |
#2 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,326
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
Code:
{#genre:subitems(-1,0)} |
||
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 164
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
|
![]() Quote:
1) Is there a thread or link that I can go to learn more about composite columns and how to fiddle with the template? When I looked at different threads on composite columns before they never seemed to address what I wanted. I used the code you gave me, but I am unsure how to create them on my own. 2) Is it possible to have the template only look for certain stories to display based off a higher heirarchy item? For example, (using the example I gave before fantasy.magic.dragons and fantasy.non-magic.dragons) could I create a composite column that would only display the last item of those tags that were under the magic item? 3) Is it possible to create a composite column that would only display a higher up heirarchal item? For example, could it show the second heirarchy item such as magic and non-magic only? - Jade Aislin ![]() ![]() |
|
![]() |
![]() |
![]() |
#4 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,326
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Two suggestions: 1) the template language manual: http://manual.calibre-ebook.com/template_lang.html. Also see the template function reference manual: http://manual.calibre-ebook.com/template_ref.html 2) the techniques post at the top of this forum: https://www.mobileread.com/forums/sho...d.php?t=118563 What might not be obvious to you is that a composite column is a column that displays the result of evaluating a template. Thus any posts that describe templates are of use when considering composite columns. Quote:
Code:
{#genre:'subitems(list_re($, ',', '^(comics|history)\.', ''), -1, 0)'} Note that this template works with calibre 0.8.22 (the latest release) and later. Quote:
Code:
{#genre:subitems(1,2)} |
|||
![]() |
![]() |
![]() |
#5 | ||||
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 164
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
|
![]() Quote:
Quote:
![]() Quote:
I hope that made sense. I will go over the links you sent me to see if I can figure it out. Quote:
Code:
{#maincategory:subitems(2,3)} - Jade Aislin ![]() ![]() |
||||
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,326
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
{#genre:'subitems(list_re($, ',', '(\.|^)(comics|history)\.', ''), -1, 0)'||} The reason to add the || at the end is to keep the template parser from being confused by the | characters in the regular expression. |
|
![]() |
![]() |
![]() |
#7 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 164
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
|
![]() Quote:
Now all I need to do is input the information into the custom column. With too many stories to count, it may take some time. At least I can look forward to having a library where I can find a story I'm in the mood for. - Jade Aislin ![]() ![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Default value for custom columns? | rogue_librarian | Library Management | 5 | 08-08-2011 05:43 PM |
Custom Columns - How are you using yours? | nynaevelan | Library Management | 19 | 04-18-2011 12:42 AM |
Custom Columns Question | Greg Waddell | Calibre | 5 | 03-31-2011 12:34 AM |
0.7.46 and custom columns | meme | Library Management | 4 | 02-21-2011 04:21 AM |
Managing Custom Columns | ddjohn | Library Management | 3 | 02-19-2011 10:42 AM |