overwrite existing footer
-
- Posts: 20
- Joined: Mon May 23, 2016 12:04 pm
overwrite existing footer
Post by anne_siemens »
"WebHelp output generated by <oXygen/> XML Author "
I tried pointing webhelp.fragment.footer to a footer.html file but it wouldn't build. When I removed the reference to the html file it builds the webhelp correctly and displays it in a browser.
There are several CSS files in the output folder. Which CSS file or which XSL needs to be copied and modified to affect the look and feel of the generated responsive webhelp?
Some of the things I'd like to change are:
- color of the tiles
- fonts - to add my company's truetype or websafe fonts
Is there an description of the numerous css files produced in the various subfolders of the out/ folder?
I'm using oXygenXML18 on Windows 7.
-
- Posts: 222
- Joined: Tue Jul 01, 2014 11:48 am
Re: overwrite existing footer
Post by bogdan_cercelaru »
I've tried using the Oxygen version 18.0 and the built-in DITA Map WebHelp Responsive transformation scenario. I have set the webhelp.fragment.footer parameter to point to the footer.xml file with the following content:How can I overwrite the footer in the Webhelp Responsive Design?
Code: Select all
<div>My other footer</div>
Depending on the template (variant/skin) that you are using for the transformation, you should edit the ${DITA_OT_DIR}/plugins/com.oxygenxml.webhelp/templates/dita/bootstrap/variants/${variant}/${skin}/skin.css file.Which CSS file or which XSL needs to be copied and modified to affect the look and feel of the generated responsive webhelp?
Regards,
Bogdan
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 20
- Joined: Mon May 23, 2016 12:04 pm
Re: overwrite existing footer
Post by anne_siemens »
Where do I find that footer.xml file?
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: overwrite existing footer
You are the one who should create a custom "footer.xml" located somewhere on the harddrive and containing an HTML <div> with your custom HTML content.
Regards,
Radu
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 20
- Joined: Mon May 23, 2016 12:04 pm
Re: overwrite existing footer
Post by anne_siemens »
-
- Posts: 404
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: overwrite existing footer
Post by radu_pisoi »
There are many XSLT stylesheets implied in the Webhelp Responsive transformation, some of them come with DITA-OT and others are specific for Webhelpl Responsive output.
I will try to enumerate the most important two XSLT stylesheets that are associated only with the Webhelp Responsive output. For DITA-OT 2.x they are:
- DITA-OT2.x\plugins\com.oxygenxml.webhelp\xsl\dita\responsive\dita2webhelp.xsl
This stylesheeet is responsible to generate one HTML file for each DITA topic. - DITA-OT2.x\plugins\com.oxygenxml.webhelp/xsl/dita/responsive/createMainFiles.xsl
This stylesheet is used to generate index terms page and the main page(index.html).
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 20
- Joined: Mon May 23, 2016 12:04 pm
Re: overwrite existing footer
Post by anne_siemens »
I'm not sure what you mean: are you saying the two XSL sheets you mentioned should not be edited
-
- Posts: 404
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: overwrite existing footer
Post by radu_pisoi »
You are allowed to modify the XSLT stylesheets within the Webhelp plugin. But, it will be a little difficult for you to update to a new Webhelp version. Keeping the modifications in separate files will help you to separate the patches by the Webhelp files.
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 20
- Joined: Mon May 23, 2016 12:04 pm
Re: overwrite existing footer
Post by anne_siemens »
-
- Posts: 404
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: overwrite existing footer
Post by radu_pisoi »
I cannot reporduce your problem with the next simple footer file, custom_footer.html :
Code: Select all
<div>Custom footer</div>
Did you follow the same scenario? If the above explanation does not help you to resolve your problem, could you send us the 'footer.html' file to support@oxygenxml.com ?
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 20
- Joined: Mon May 23, 2016 12:04 pm
Re: overwrite existing footer
Post by anne_siemens »
-
- Posts: 20
- Joined: Mon May 23, 2016 12:04 pm
Re: overwrite existing footer
Post by anne_siemens »
-
- Posts: 222
- Joined: Tue Jul 01, 2014 11:48 am
Re: overwrite existing footer
Post by bogdan_cercelaru »
As you already noted, the problem is that the image referred in your "footer.html" file has a relative path and the browser cannot always locate it.
Depending on your needs, to solve this, you have the following options:
1. If the WebHelp is accessed only from a Web server, you could specify an absolute path to the image in your footer.html file. Assuming that your image is located in the "/image/" directory from your Web server, the value of the "src" attribute of the image should be "/image/image_name.png"
2. If the WebHelp also needs to be accessed locally (without a Web server), you have to edit the template according to the following steps:
- Copy your image in the "[DITA_OT_DIR]/plugins/com.oxygenxml.webhelp/templates/dita/bootstrap/resources/images/" directory
- Open your "footer.html" file
- Use the ${oxygen-webhelp-template-dir} macro to point to the template root directory and replace the "src" attribute of the image with something like:
Code: Select all
src="${oxygen-webhelp-template-dir}/resources/images/image_name.png"
Bogdan
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 20
- Joined: Mon May 23, 2016 12:04 pm
Re: overwrite existing footer
Post by anne_siemens »
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>footer</title>
</head>
<body>
<p>Brought to you by:</p>
<br/>
<p>
<img src="${oxygen-webhelp-template-dir}/resources/images/footer_logo.png" alt="image_here"></img>
</p>
</body>
</html>
-
- Posts: 20
- Joined: Mon May 23, 2016 12:04 pm
Re: overwrite existing footer
Post by anne_siemens »
but it does work if I use the full, absolute path:
<img src="C:\Program Files\Oxygen XML Editor 18\frameworks\dita\DITA-OT\plugins\com.oxygenxml.webhelp\templates\dita\bootstrap\resources\images\footer_logo.png" alt="image_here"></img>
Any ideas why the macro to point to the template directory doesn't work for me?
-
- Posts: 20
- Joined: Mon May 23, 2016 12:04 pm
Re: overwrite existing footer
Post by anne_siemens »
-
- Posts: 20
- Joined: Mon May 23, 2016 12:04 pm
Re: overwrite existing footer
Post by anne_siemens »
https://www.oxygenxml.com/doc/versions/ ... ption.html, which resizes perfectly and does not have a white border below the black footer. Any ideas why this happens & how it can be resolved?
-
- Posts: 222
- Joined: Tue Jul 01, 2014 11:48 am
Re: overwrite existing footer
Post by bogdan_cercelaru »
I've tested using your example for "footer.html" file and it works as expected. The macro works and the image is correctly displayed in all major browsers (IE, Chrome and Firefox).
Make sure that your "footer_logo.png" image is located in the correct DITA-OT directory.
Check which DITA-OT are you using to publish WebHelp (Options > Preferences... > DITA). If you are using DITA-OT 2.x, then your image should be in the corresponding directory (in your case: C:\Program Files\Oxygen XML Editor 18\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.webhelp\templates\dita\bootstrap\resources\images\).
Regards,
Bogdan
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 20
- Joined: Mon May 23, 2016 12:04 pm
Re: overwrite existing footer
Post by anne_siemens »
<img src="${oxygen-webhelp-template-dir}/resources/images/footer_logo.png" alt="image_here"></img>?
-
- Posts: 222
- Joined: Tue Jul 01, 2014 11:48 am
Re: overwrite existing footer
Post by bogdan_cercelaru »
I want you to check if the "${oxygen-webhelp-template-dir}" expands to the relative path of the "footer_logo.png" and the image is correctly displayed in browser after you place the "footer_logo.png" file in the correct DITA-OT directory, as instructed above.
Regards,
Bogdan
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 20
- Joined: Mon May 23, 2016 12:04 pm
Re: overwrite existing footer
Post by anne_siemens »
Image shows in IE, Firefox & Chrome.
Thank you
-
- Posts: 118
- Joined: Mon Apr 19, 2010 5:33 pm
Re: overwrite existing footer

Any idea what is causing this?
-
- Site Admin
- Posts: 275
- Joined: Thu Dec 24, 2009 11:21 am
Re: overwrite existing footer
By default, the content from webhelp.footer.file is placed into an HTML <div class="footer"> element which has a float:right CSS styling applied to it.
You can override the default styling by specifying a custom CSS file using the following two parameters:
- args.css - Specifies the path to the custom CSS file
- args.copycss - Specifies if the custom CSS file should be copied to the output directory. You MUST set it to yes
Code: Select all
div.footer {
float:none;
}
Regards,
Alin
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
- 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