Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 05-28-2025, 07:26 AM   #1051
Reader4106
Member
Reader4106 began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Oct 2014
Location: Schweiz [Switzerland]
Device: Pocketbook Verse Pro
Thank you for your answer chaley

First I should say, I have absolutely no talent for programming (unfortunately).

Quote:
If #genre_rg is a "column built from other columns then you fill it in using "subitems()" function in a template to select the second and third values from a hierarchy.
Yes, it's a "column built from other columns."
I tried to get help from ChatGPT, but we couldn't get that to work either.

I would appreciate any help.
Reader4106 is offline   Reply With Quote
Old 05-28-2025, 07:35 AM   #1052
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,362
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Reader4106 View Post
Thank you for your answer chaley

First I should say, I have absolutely no talent for programming (unfortunately).



Yes, it's a "column built from other columns."
I tried to get help from ChatGPT, but we couldn't get that to work either.

I would appreciate any help.
Use this template for the column "#genre_rg":
Code:
{#genre:subitems(1,3)}
or
Code:
program:
	subitems($#genre, 1,3)
The second is marginally faster than the first.
chaley is offline   Reply With Quote
Advert
Old 05-28-2025, 08:28 AM   #1053
Reader4106
Member
Reader4106 began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Oct 2014
Location: Schweiz [Switzerland]
Device: Pocketbook Verse Pro
Dear Chaley,
Eureka.

Thanks to your help
Quote:
"subitems()"
and the trial and error method, I found the solution "{#genre:subitems(1,3)}".
That's perfect.

Thanks again.
Reader4106 is offline   Reply With Quote
Old 05-28-2025, 08:34 AM   #1054
Reader4106
Member
Reader4106 began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Oct 2014
Location: Schweiz [Switzerland]
Device: Pocketbook Verse Pro
I used your second approach.
It seems to be the better one, and I'll use it.
Reader4106 is offline   Reply With Quote
Reply

Tags
custom column, tag, tags


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
custom column i need a little help shinken Calibre 3 09-15-2010 03:41 AM
Using Custom Metadata in Save Template EJvdH Calibre 1 07-02-2010 06:06 AM
Accessories Decalgirl Kindle 2 custom skin template srmalloy Amazon Kindle 6 04-09-2010 09:55 PM
Donations for Custom Recipes ddavtian Calibre 5 01-23-2010 04:54 PM
Help understanding custom recipes andersent Calibre 0 12-17-2009 02:37 PM


All times are GMT -4. The time now is 05:39 AM.


MobileRead.com is a privately owned, operated and funded community.