|
|
#1 |
|
Member
![]() 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! |
|
|
|
|
|
#2 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 68
Karma: 582370
Join Date: Apr 2023
Device: Kobo Clara 2E, Pocketbook Inkpad 4
|
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',
",")
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Member
![]() Posts: 10
Karma: 10
Join Date: Oct 2021
Device: Onyx Book
|
Thank you, that works perfectly!
|
|
|
|
![]() |
| Tags |
| composite columns, template language |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using templates for file names, plugboards, composite columns, searches, tooltips | chaley | Library Management | 1053 | 05-28-2025 09:34 AM |
| Accessing composite column template | ownedbycats | Library Management | 2 | 12-18-2022 05:56 PM |
| A little help with template functions in a composite column, please! | mopkin | Library Management | 2 | 11-06-2019 12:07 AM |
| Composite column template question | Anna_R | Library Management | 4 | 06-03-2015 04:59 AM |
| [Custom Column - Composite] Template Help Requested | Ealdwulf | Library Management | 2 | 06-16-2012 05:58 AM |