URL not showing in Fancy Index when published

Any trouble you encounter with the Pedias, here's the place to ask for help.
Post Reply
cpburrowes
Junior Member
Junior Member
Posts: 3
Joined: Wed May 19, 2010 7:29 pm

URL not showing in Fancy Index when published

Post by cpburrowes »

I would like to include links to Google Books from books in my collection. I'm using the Fancy Index template, which I have successfully altered in other way. Although the Google Books URL is included in an entry, it does not show up when the entry is published to my browser. Any suggestions for fixing this would be appreciated.
marumari
Addicted to Bruji
Addicted to Bruji
Posts: 104
Joined: Thu Dec 10, 2009 10:38 am
Contact:

Re: URL not showing in Fancy Index when published

Post by marumari »

Is it in the custom1 field or something? If so, you should just be able to change:

<!--IFcustom1 <tr><td class="cbtrans">[translate:custom1]:</td><td class="cbkeys">[key:custom1]</td></tr> ENDcustom1-->

To:

<!--IFcustom1 <tr><td class="cbtrans">[translate:custom1]:</td><td class="cbkeys"><a href="[key:custom1]" target="_blank">Google Books Link</a></td></tr> ENDcustom1-->

Or the like. FancyIndex doesn't autodetect whether or not the values of a field are a link, and automatically make them into <a> tags.
cpburrowes
Junior Member
Junior Member
Posts: 3
Joined: Wed May 19, 2010 7:29 pm

Re: URL not showing in Fancy Index when published

Post by cpburrowes »

Thanks for the prompt reply. It's not in a custom. It's in a field labeled "URL".
marumari
Addicted to Bruji
Addicted to Bruji
Posts: 104
Joined: Thu Dec 10, 2009 10:38 am
Contact:

Re: URL not showing in Fancy Index when published

Post by marumari »

There is, as far as I know, no field called "URL" in Bookpedia. As far as the templating system is concerned, it is still called customX, even if you've renamed it in your Preferences.

If you go into your Preferences, does it list URL under any of the Custom Field Titles?
User avatar
Nora
Site Admin
Posts: 2155
Joined: Sun Jul 04, 2004 5:03 am
Contact:

Re: URL not showing in Fancy Index when published

Post by Nora »

@marumari: There is a field called 'URL' in all of the Pedias, it's usually located under the Extras tab of the Add/Edit window. (If you don't see it, you can turn it on in the Preferences/Fields.)

@cpburrowes: I don't believe the URL field is included in the template so you'd have to add that yourself via the 'Edit' button in the export window. Actually because this template has a details template, i.e. two different templates in one, you can't use the Edit button but instead have to open the template directly from the program. Ctrl-click the Bookpedia icon and navigate to 'Show package contents/Contents/Resources/Templates/FancyIndex.html and FancyIndexDetails.html'. (We have to improve this for the future so that the program knows when a template has a details page attached.)

Make sure afterwards to save your template in the Templates folder in ~/Library/Application Support/Bookpedia/Templates afterwards so it won't be overwritten when you download a new version of the program.
marumari
Addicted to Bruji
Addicted to Bruji
Posts: 104
Joined: Thu Dec 10, 2009 10:38 am
Contact:

Re: URL not showing in Fancy Index when published

Post by marumari »

Oh, I didn't know that. I don't see the field listed anywhere in here:

https://www.bruji.com/howto/creating_te ... /tags.html

(although there is [link:url] and [similarProduct:url])

The template didn't include any of the [link] fields because I didn't want to have to worry about it creating broken links when published or accidentally leaking personal data about ones drives or the like. That, and there's no super great way of filtering what kinds of links get sent to the template.
cpburrowes
Junior Member
Junior Member
Posts: 3
Joined: Wed May 19, 2010 7:29 pm

Re: URL not showing in Fancy Index when published

Post by cpburrowes »

Nora wrote:@cpburrowes: I don't believe the URL field is included in the template so you'd have to add that yourself via the 'Edit' button in the export window.
Sorry for the naive question, but how do I add the URL field after opening up the FancyIndexDetails.
Post Reply