Relative linking for header logo in individual pages of classic webhelp not working
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 1
- Joined: Fri Oct 05, 2018 11:11 am
Relative linking for header logo in individual pages of classic webhelp not working
Post by prateek_satpathy »
Hi,
I am trying to generate classic webhelp output with a header logo for all pages.I have used a custom CSS where the logo is mentioned and the path for the logo is the root folder.
h1.before{
content : url("./logo.png");
}
But the issue is for the immediate concepts and task folder it is able to fetch and display the logo,not for the sub folders. So relative linking is not working. Please help
Thanks
I am trying to generate classic webhelp output with a header logo for all pages.I have used a custom CSS where the logo is mentioned and the path for the logo is the root folder.
h1.before{
content : url("./logo.png");
}
But the issue is for the immediate concepts and task folder it is able to fetch and display the logo,not for the sub folders. So relative linking is not working. Please help
Thanks
-
- Posts: 407
- Joined: Mon Dec 05, 2011 6:08 pm
Re: Relative linking for header logo in individual pages of classic webhelp not working
Hello,
I've tested and you could achieve this using a custom CSS file with the following CSS code:
More information about how to use a custom CSS can be found in our user manual: Referencing the Custom CSS
Taking into account that the image URL should be relative to the custom CSS file, and the CSS file will be copied to the root directory of the generated output you also need to use the webhelp.custom.resources parameter to point to a directory that contains only your logo.png file. This way, the png file (and all the resources located in that directory) will be copied to the root directory of the published output. Given this it is recommended to create a directory that contains only the logo file.
You can find here more details about webhelp.custom.resources parameter: Copying Additional Resources to Output Directory
Regards,
Ionela
I've tested and you could achieve this using a custom CSS file with the following CSS code:
Code: Select all
h1:before{
content: url('logo.png');
}
Taking into account that the image URL should be relative to the custom CSS file, and the CSS file will be copied to the root directory of the generated output you also need to use the webhelp.custom.resources parameter to point to a directory that contains only your logo.png file. This way, the png file (and all the resources located in that directory) will be copied to the root directory of the published output. Given this it is recommended to create a directory that contains only the logo file.
You can find here more details about webhelp.custom.resources parameter: Copying Additional Resources to Output Directory
Regards,
Ionela
Ionela Istodor
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
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)
- ↳ 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