Adding a hyperlink in a logo in footer
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 18
- Joined: Fri Dec 02, 2016 7:34 pm
Adding a hyperlink in a logo in footer
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:
Regards,
Julie
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>
Julie
-
- Posts: 404
- 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:
The variable id.index points to ID generated for the Index section, see:
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.
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}">
Code: Select all
{oXygenInstallDir}/frameworks/dita/DITA-OT2.x/plugins/org.dita.pdf2/xsl/fo/toc.xsl
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service