Adding hyperlinks to glossary items

This forum is for all Flare issues not related to any of the other categories.
Post Reply
Jobag73
Jr. Propeller Head
Posts: 2
Joined: Thu Jun 29, 2017 6:22 am
Location: Huddersfield, UK

Adding hyperlinks to glossary items

Post by Jobag73 »

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

Has anyone else managed this?
BedfordWriter
Sr. Propeller Head
Posts: 217
Joined: Wed Jun 23, 2010 10:13 am
Location: Nova Scotia

Re: Adding hyperlinks to glossary items

Post by BedfordWriter »

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.
Jobag73
Jr. Propeller Head
Posts: 2
Joined: Thu Jun 29, 2017 6:22 am
Location: Huddersfield, UK

Re: Adding hyperlinks to glossary items

Post by Jobag73 »

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.... :(
GregStenhouse
Sr. Propeller Head
Posts: 330
Joined: Tue May 13, 2008 3:27 pm
Location: Christchurch, New Zealand

Re: Adding hyperlinks to glossary items

Post by GregStenhouse »

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.
Kim in GA
Propeller Head
Posts: 14
Joined: Fri Mar 08, 2019 12:12 pm

Re: Adding hyperlinks to glossary items

Post by Kim in GA »

I'm creating a print (PDF) Glossary and terms associated with topics (because I want them to include a diagram) aren't present at all in the generated glossary.

Is it possible to include diagrams in a print glossary?
Post Reply