Page 1 of 1
Multiple footers?
Posted: Wed Nov 29, 2017 8:27 pm
by kgajda
Hi!
I have two different footer html files that I would like to use in my webhelp output. I am using the webhelp.fragment.footer parameter currently to point to my footer, but I would like a different, larger footer on the index landing page. Is it possible to reference a different footer file/fragment in that page only?
Thanks for your help

Kim
Re: Multiple footers?
Posted: Thu Nov 30, 2017 5:43 pm
by bogdan_cercelaru
Hello,
To use different footer file for index page you should follow this procedure:
- Create a backup copy of the "${DITA-OT-DIR}\plugins\com.oxygenxml.webhelp.responsive\templates\dita\bootstrap" directory. This could be helpful if you want to revert your changes.
- Copy "${DITA-OT-DIR}\plugins\com.oxygenxml.webhelp.responsive\templates\dita\bootstrap\footer.xml" file to "${DITA-OT-DIR}\plugins\com.oxygenxml.webhelp.responsive\templates\dita\bootstrap\index_footer.xml"
- Open newly created "${DITA-OT-DIR}\plugins\com.oxygenxml.webhelp.responsive\templates\dita\bootstrap\index_footer.xml" file and replace
Code: Select all
<whc:include_html href="${webhelp.fragment.footer}"/>
with Code: Select all
<whc:include_html href="${webhelp.fragment.index.footer}"/>
- Open "${DITA-OT-DIR}\plugins\com.oxygenxml.webhelp.responsive\templates\dita\bootstrap-custom\wt_index.html" file and replace
Code: Select all
<!ENTITY footer SYSTEM "footer.xml">
with Code: Select all
<!ENTITY footer SYSTEM "index_footer.xml">[/list]
- Edit the "Configure Transformation Scenario(s)" dialog
- Edit the "DITA Map WebHelp Responsive" transformation scenario
- In the "Templates" tab select a template
- Go to "Parameters" tab
- Add a new parameter by pressing the "New" button. Enter "webhelp.fragment.index.footer" in the "Name" field and select your custom footer file that should be included on the index page
- Edit the "webhelp.fragment.footer" parameter to point to the custom footer file that should be included in all other pages
Regards,
Bogdan