print webhelp footer

Oxygen general issues.
urbanrobots
Posts: 86
Joined: Sun May 03, 2015 7:34 pm
Location: San Francisco

print webhelp footer

Post by urbanrobots »

Hello,

We use the webhelp.footer.file parameter to add a footer to each HTML topic. However, this footer does not print. We need copyright information on each printed page. Can you explain how to do this?

Thanks!

Take care,
- Nick
bogdan_cercelaru
Posts: 222
Joined: Tue Jul 01, 2014 11:48 am

Re: print webhelp footer

Post by bogdan_cercelaru »

Hello,

If you want the footer of your HTML file to be printed, you should use a custom CSS file (custom.css) with the following content:

Code: Select all


@media print{
/**
* Display footer
*/
.footer{
display:block;
}
}
After creating the "custom.css" file, edit your transformation scenario, go to "Parameters" tab, set the "args.copycss" parameter to "yes" and set the "args.css" parameter to point to your "custom.css" file.

Please let me know if you need any further assistance.

Regards,
Bogdan
Bogdan Cercelaru
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
urbanrobots
Posts: 86
Joined: Sun May 03, 2015 7:34 pm
Location: San Francisco

Re: print webhelp footer

Post by urbanrobots »

Thanks for the reply, Bogdan.

This works for printing the copyright footer in the ToC area, but does not work for the footer that appears under the content itself. Is JavaScript limiting the CSS functionality?

Thanks,
- Nick
bogdan_cercelaru
Posts: 222
Joined: Tue Jul 01, 2014 11:48 am

Re: print webhelp footer

Post by bogdan_cercelaru »

Hello,

What browser you are using and how did you print the page?
I've tried Chrome, IE and Firefox, using the print button from WebHelp page (right side of the header) and all pages print the footer if the custom CSS is set.

Regards,
Bogdan
Bogdan Cercelaru
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
urbanrobots
Posts: 86
Joined: Sun May 03, 2015 7:34 pm
Location: San Francisco

Re: print webhelp footer

Post by urbanrobots »

Oops. I had a typo in the file. This CSS works perfectly. Thanks!
Post Reply