Adding hyperlinks to glossary items

This forum is for all Flare issues not related to any of the other categories.

Adding hyperlinks to glossary items

Postby Jobag73 on Thu Jun 29, 2017 6:33 am

I've tried to find a way of adding links to external websites in glossary topics and failed...

Has anyone else managed this?
Jobag73
Jr. Propeller Head
 
Posts: 2
Joined: Thu Jun 29, 2017 6:22 am
Location: Huddersfield, UK

Re: Adding hyperlinks to glossary items

Postby BedfordWriter on Tue Jul 04, 2017 12:47 pm

Depends on what you mean. If you want the glossary definition to show as a clickable link in an HTML5 output, then no. The definition is being rendered as a link already, where the href target is javascript:void(0); and the css reveals the definition text as the reader hovers over the link. It's kinda hard to put a working link inside the link and you're not going to tell the Flare compiler to use anything other than javascript:void(0); as the target.

If your target isn't too big and you don't have a huge number of glossary terms, you could do some post-processing to change the target in those links to be whatever URLs you wanted. That would work.

On the other hand, maybe you generate PDF output (the question didn't specify). In that case, just provide a URL as the definition. (Be careful to escape the ampersand characters and such if you have them. Skip the <a href=... part.) Presto, it works.
BedfordWriter
Sr. Propeller Head
 
Posts: 151
Joined: Wed Jun 23, 2010 10:13 am
Location: Nova Scotia

Re: Adding hyperlinks to glossary items

Postby Jobag73 on Mon Jul 17, 2017 3:09 am

BedfordWriter wrote:Depends on what you mean. If you want the glossary definition to show as a clickable link in an HTML5 output, then no.


Pants.... :(
Jobag73
Jr. Propeller Head
 
Posts: 2
Joined: Thu Jun 29, 2017 6:22 am
Location: Huddersfield, UK

Re: Adding hyperlinks to glossary items

Postby GregStenhouse on Mon Jul 17, 2017 7:54 pm

If you want rich text in glossary items (including links) and other fancy things like images, then you can use a topic as the glossary definition and then link to it in your glossary file. The end result is not much different - they still appear as popups when clicked. From memory they appear as a larger popup that covers the topic rather than a small text based thing over the cursor - but you can happily mix the two.
GregStenhouse
Sr. Propeller Head
 
Posts: 328
Joined: Tue May 13, 2008 3:27 pm
Location: Christchurch, New Zealand


Return to Flare's General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests