Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-27-2019, 09:49 AM   #1
M. Northstar
Junior Member
M. Northstar began at the beginning.
 
M. Northstar's Avatar
 
Posts: 3
Karma: 10
Join Date: Mar 2012
Location: Sweden
Device: Smart Phone
Composite Columns: Stripping HTML from a value

Hi. I'm sorry if this has been addressed before, but if so, about an hour of reading the manual and searching the forums didn't find it.


I want to create a custom column that takes the value of the Title field, and my custom column Sub Title, and puts them together as Display Name.


I have gotten so far as this template:


Code:
{title}{#sub:|: |}
which does everything I want, except that the #sub field (which is a long text field) returns HTML-formatted text. How do I make it return just the plain text, as it does in the column itself?
M. Northstar is offline   Reply With Quote
Old 08-27-2019, 01:02 PM   #2
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: 11,733
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
The #sub field should have the sub-type "Short text, like a title". That subtype doesn't use html.
Attached Thumbnails
Click image for larger version

Name:	Clipboard01.jpg
Views:	84
Size:	51.9 KB
ID:	173144  
chaley is offline   Reply With Quote
Advert
Old 08-28-2019, 05:39 PM   #3
M. Northstar
Junior Member
M. Northstar began at the beginning.
 
M. Northstar's Avatar
 
Posts: 3
Karma: 10
Join Date: Mar 2012
Location: Sweden
Device: Smart Phone
That's done it. Thanks.

(A note, however: those posts that had already had a value in the #sub field, and therefore had HTML formatting, retained their HTML formatting. I had to go in and delete the HTML tags for hand. Fortunately, there were only a couple of posts with that information already filled in).
M. Northstar is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Having problems with composite columns and save/send templates Trel Calibre 4 09-26-2016 03:21 PM
composite columns only effect part of data Jade Aislin Library Management 2 04-13-2016 04:54 PM
Color coding and designing composite columns ElMiko Library Management 12 01-04-2015 08:55 PM
HTML input plugin stripping text within toc tags in child html file nimblebooks Conversion 3 02-21-2012 03:24 PM
composite custom columns sorted numerically Doug-W Library Management 2 02-18-2011 02:16 AM


All times are GMT -4. The time now is 09:31 PM.


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