12-13-2020, 10:42 AM | #1 |
Enthusiast
Posts: 28
Karma: 10
Join Date: Aug 2010
Device: Kobo GloHD
|
Problem with title link custom column
For the last few years I've been using a custom column which somebody posted here, which makes the title as it appears in the sidebar a link to where the text was downloaded from.
Recently I've started getting an error message, instead of the link, and I was hoping somebody might be able to help me with what I need to change to make it work again. Thank you to anyone who can help. The error message I'm getting is: EXCEPTION: Formatter: Missing closing parenthesis near ';' and the custom column command is: Code:
{identifiers:' strcmp( assign(title, field('title')); substr($, 0, 4), 'url:', title, strcat('<a href="', substr($, 4, 0), '">', title, '</a>'), title, ) '} |
12-13-2020, 12:31 PM | #2 |
Grand Sorcerer
Posts: 12,029
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
That template worked because of a (fixed) bug in the template language.
Use this instead Code:
{identifiers:' title = field('title'); strcmp( substr($, 0, 4), 'url:', title, strcat('<a href="', substr($, 4, 0), '">', title, '</a>'), title ) '} |
Advert | |
|
12-18-2020, 09:00 AM | #3 |
Enthusiast
Posts: 28
Karma: 10
Join Date: Aug 2010
Device: Kobo GloHD
|
Ah, I wondered if it was something like that - I tried tweaking it, but simply don't know enough to be able to get it to work. Thank you for giving me an updated version, it's very much appreciated.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom Column Title Only | tarisea | Library Management | 3 | 09-14-2015 04:07 PM |
Remove nested title in a custom column | leftright | Library Management | 6 | 01-23-2015 11:11 PM |
Creating a Custom Column Link | a_daley | Library Management | 5 | 02-16-2014 06:56 AM |
Custom column problem | Statch | Calibre | 6 | 06-14-2013 03:03 PM |
Is it possible to sort a custom column like authors or title? | arspr | Library Management | 2 | 03-15-2011 05:44 PM |