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 08-20-2023, 02:10 AM   #1
Snomad
Member
Snomad began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Oct 2021
Device: Onyx Book
Help with a composite column template formula

Hi all,

I'm looking to create a composite column formula that displays common genres listed in the tags column. Using a composite column means it will always be up-to-date when new books are added, so I feel this is a better option than bulk copying tag information. Unfortunately, I have not been able to determine from help pages how to write this formula, I believe it begins {tags:... but that is as far as I can get. The values I am looking to find and display are:

Action and Adventure
Comedy
Crime and Mystery
Fantasy
Horror
Science Fiction
Romance

The column is already set up as 'behaves like tags' which I believe is necessary to achieve this but please let me know if I am mistaken.

Thanks!
Snomad is offline   Reply With Quote
Old 08-20-2023, 03:56 AM   #2
Ghostcat
Connoisseur
Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.
 
Posts: 61
Karma: 582370
Join Date: Apr 2023
Device: Kobo Clara 2E
I have a similar custom column, which uses the following:

Code:
program:
    list_intersection(field('tags'), 
	'Action and Adventure,Comedy,Crime and Mystery,Fantasy,Horror,Science Fiction,Romance', 
	",")
And yes, "Column built from other columns, behaves like tags" is the way to go.
Ghostcat is offline   Reply With Quote
Old 08-20-2023, 08:33 AM   #3
Snomad
Member
Snomad began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Oct 2021
Device: Onyx Book
Thank you, that works perfectly!
Snomad is offline   Reply With Quote
Reply

Tags
composite columns, template language


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugboard, template, and custom composite column recipes chaley Library Management 1053 05-28-2025 08:34 AM
Accessing composite column template ownedbycats Library Management 2 12-18-2022 04:56 PM
A little help with template functions in a composite column, please! mopkin Library Management 2 11-05-2019 11:07 PM
Composite column template question Anna_R Library Management 4 06-03-2015 03:59 AM
[Custom Column - Composite] Template Help Requested Ealdwulf Library Management 2 06-16-2012 04:58 AM


All times are GMT -4. The time now is 12:24 AM.


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