06-18-2012, 01:34 PM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Jun 2012
Device: Kindle Fire
|
Help with Custom Column
I'm trying to create a custom column that contains the first (and only the first) entry in the tags field.
I've tried using this as the template: Code:
{tags:subitems(0,1)} I also tried: Code:
{list_item(tags, 0, ',') } What am I doing wrong? |
06-18-2012, 05:02 PM | #2 |
Grand Sorcerer
Posts: 11,740
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Subitems creates a list of hierarchical subitems. It does not isolate one entry in a list of entries. To isolate list entries, use list_item or sublist.
I think the following does what you are looking for. Code:
{tags:'list_item($, 0, ',')'} Code:
{tags:'list_item(list_sort($, '0', ','), 0, ',')'} Code:
program: list_item(field('tags'), 0, ',') |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
custom date column from two state column | Dopedangel | Library Management | 7 | 01-03-2012 08:20 AM |
help with custom column | Noughty | Library Management | 4 | 10-15-2011 05:31 AM |
Can custom book data be displayed in a custom column? | kiwidude | Development | 9 | 03-02-2011 05:35 AM |
Need help with this custom Column. | Rie142 | Library Management | 2 | 02-20-2011 09:51 AM |
custom column i need a little help | shinken | Calibre | 3 | 09-15-2010 03:41 AM |