View Single Post
Old 09-29-2014, 01:05 AM   #1
icarine
Member
icarine can extract oil from cheeseicarine can extract oil from cheeseicarine can extract oil from cheeseicarine can extract oil from cheeseicarine can extract oil from cheeseicarine can extract oil from cheeseicarine can extract oil from cheeseicarine can extract oil from cheese
 
Posts: 13
Karma: 1034
Join Date: Mar 2010
Location: NC
Device: PB 360
Create link that searches in Calibre

I love how you can click on a tag in book details and search Calibre for that tag. I'm trying to create a column template that does the same thing for a custom column.

I tried a column template like:
Code:
{#genre:|<a href='search:#genre:"=|"'>}{#genre:||</a>}
But I either get this error:
Code:
calibre, version 2.2.0
ERROR: Unhandled exception: <b>TypeError</b>:Non-hexadecimal digit found
Or this error:
Code:
calibre, version 2.2.0
ERROR: Unhandled exception: <b>TypeError</b>:Odd-length string
Even if I do something simple like
Code:
<a href="search:test">test</a>
I get the same error. Is there a way to do this? What's the right URL pattern?
icarine is offline   Reply With Quote