Adding a hyperlink in a logo in footer

Post here questions and problems related to editing and publishing DITA content.
Julie P
Posts: 18
Joined: Fri Dec 02, 2016 7:34 pm

Adding a hyperlink in a logo in footer

Post by Julie P »

Hi,

In my PDF output, I have our company logo in the footer. I would like this logo to be a hyperlink to the index. Is that possible? I haven't found topics on this issue.
I managed to insert a link to an external web site, but I cannot figure out how to point to the index.
This is what I wrote so far in the insertBodyOddFooter xsl template:

Code: Select all

<fo:inline>

<fo:basic-link color="blue" external-destination="url('http://www.google.com')" text-altitude="0.50cm">
<fo:external-graphic src="url(Customization/OpenTopic/common/artwork/Mylogo.png)" content-height="scale-down to-fit" height="0.50cm"/>
</fo:basic-link>

</fo:inline>
Regards,

Julie
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: Adding a hyperlink in a logo in footer

Post by radu_pisoi »

Hi,

Do you want to create a link to the Index section?

If this is your case, I think you should use the fo:basic-link/@internal-destination attribute to create a link inside the PDF document.

More precisely, to create a link to the Index section, you can try something like this:

Code: Select all

<fo:basic-link internal-destination="{$id.index}">
The variable id.index points to ID generated for the Index section, see:

Code: Select all

{oXygenInstallDir}/frameworks/dita/DITA-OT2.x/plugins/org.dita.pdf2/xsl/fo/toc.xsl
However, for questions like this a good discussion channel is the DITA users list, http://dita.xml.org/dita-users. This list is monitored by many DITA specialists, so the chances to get a fast and good answer are higher. We are also registered and active to this list.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Julie P
Posts: 18
Joined: Fri Dec 02, 2016 7:34 pm

Re: Adding a hyperlink in a logo in footer

Post by Julie P »

Hi,

Thank you very much for your help.

Regards,

Julie
Post Reply