Responsive Webhelp : Add footer with links to topics

Post here questions and problems related to editing and publishing DITA content.
urbanrobots
Posts: 86
Joined: Sun May 03, 2015 7:34 pm
Location: San Francisco

Responsive Webhelp : Add footer with links to topics

Post by urbanrobots »

Hi,
We have frontmatter and glossary content in the ditamap that we'd like to include in the footer of the responsive webhelp. We can easily hide this content from the wh-tiles. However, it's trickier to then add these two hidden sections as links in the footer.

You do this on this page:
https://www.oxygenxml.com/doc/versions/ ... webauthor/

The footer has links to Glossary and Copyright.

How did you do this? We'll need these to be dynamic based on that ditamap.
ionela
Posts: 402
Joined: Mon Dec 05, 2011 6:08 pm

Re: Responsive Webhelp : Add footer with links to topics

Post by ionela »

Hello,

To achieve this in our documentation we've used the solution you've indicated, we've hide the content from the wh-tiles and then we've added links in the footer (but the links are not dynamic).
Unfortunately, we do not have a solution to obtain this result dynamically based on the ditamap.

Regards,
Ionela
Ionela Istodor
oXygen XML Editor and Author Support
urbanrobots
Posts: 86
Joined: Sun May 03, 2015 7:34 pm
Location: San Francisco

Re: Responsive Webhelp : Add footer with links to topics

Post by urbanrobots »

Okay, thanks anyway.

How did you add the links to the footer?
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: Responsive Webhelp : Add footer with links to topics

Post by radu_pisoi »

Hi,


For creating the footer in our documentation we use a custom PHP file.

To generate a custom WebHelp Responsive footer, you can use the webhelp.fragment.footer parameter. This parameter specifies the path to an XHTML file that will replace the default WebHelp footer.

In the custom footer fragment, you can use the ${path(oxygen-webhelp-template-dir)} macro that allows you to generate links to the resources from the output folder. For instance, to generate a link to the Copyright topic the XML fragment may be:

Code: Select all

<div class="footer">
<a href="${path(oxygen-webhelp-output-dir)}/topics/copyright.html">Copyright</a>
</div>
You can read more about WebHelp Responsive macros in our documentation:
https://www.oxygenxml.com/doc/versions/ ... aid-title5
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply