Adding buttons to webhelp classic header
Oxygen general issues.
-
- Posts: 118
- Joined: Mon Apr 19, 2010 5:33 pm
Adding buttons to webhelp classic header
I am need of adding a button next to the oldframes and printlink button (top right in the framesLink div).
I understand that images can be utilized as Base64 in the CSS skin, and I have created a class in webhelp_topic.css.
Can anyone provide some pointers on the files involved in working with these?
I understand that images can be utilized as Base64 in the CSS skin, and I have created a class in webhelp_topic.css.
Can anyone provide some pointers on the files involved in working with these?
-
- Site Admin
- Posts: 275
- Joined: Thu Dec 24, 2009 11:21 am
Re: Adding buttons to webhelp classic header
Hello,
The XHTML fragment should contain the JavaScript code that inserts the button in the desired location.
You can find the procedure of including custom XHTML content in your WebHelp output files at:
https://www.oxygenxml.com/doc/versions/ ... hing2.html
Doing so, the built-in WebHelp files are not modified and it will be easier to update the WebHelp plugin to the latest version in the future.
You can apply CSS styles on the generated button by contributing a custom CSS file to the WebHelp transformation.
For example:
This procedure can be found at: https://www.oxygenxml.com/doc/versions/ ... n-css.html
You can achieve this by contributing an XHTML fragment to the transformation scenario. This fragment will be inserted in the HTML files generated by the WebHelp transformation.kmank wrote:I am need of adding a button next to the oldframes and printlink button (top right in the framesLink div).
The XHTML fragment should contain the JavaScript code that inserts the button in the desired location.
Code: Select all
<script type="text/javascript">
<!--
$( document ).ready(function() {
$('.framesLink').prepend('<button onclick="myFunction()" class="toolbar-btn">Btn</button>');
}
);
function myFunction() {
// Add your code here
}
//-->
</script>
https://www.oxygenxml.com/doc/versions/ ... hing2.html
First of all, it would be better to keep your JS and/or CSS customizations in separate files, outside the Oxygen installation directory and refer them using the available parameters.kmank wrote:I understand that images can be utilized as Base64 in the CSS skin, and I have created a class in webhelp_topic.css.
Doing so, the built-in WebHelp files are not modified and it will be easier to update the WebHelp plugin to the latest version in the future.
You can apply CSS styles on the generated button by contributing a custom CSS file to the WebHelp transformation.
For example:
Code: Select all
.toolbar-btn {
/* Add your styles here. */
}
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
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