How to display the build date in WebHelp Classic?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
DrStrangelove
Posts: 18
Joined: Thu Jan 25, 2018 11:21 pm

How to display the build date in WebHelp Classic?

Post by DrStrangelove »

I'm using WebHelp Classic and want to display the build date (the date the transformation was run) in the html output.

I tried doing the following:
1) On the Transformation Parameters dialog, click New, then enter the parameter name (args.sysdate) and value (${date(yyyy-MM-dd)}).
2) In the ...DITA-templates\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.webhelp.classic\plugin_commons.xml file, define the new parameter,
e.g. <param name="args.sysdate"
desc="The system date of the build"
type="string"/>
3) In the dita source file, try <parmname>args.sysdate</parmname> and variations on that. I tried using a dollar sign and curly braces, etc.
4) All I get in the output is some literal string from the dita file, such as "args.sysdate"

How can I render the build date in the transformation output in the easiest way possible?

Thank you in advance.
alin
Site Admin
Posts: 275
Joined: Thu Dec 24, 2009 11:21 am

Re: How to display the build date in WebHelp Classic?

Post by alin »

Hello,

The easiest way to insert the generation date in the WebHelp Classic output is to edit the "webhelp.copyright" parameter in the Transformation Scenario Dialog and use the Current Date Editor Variable (${date(yyyy-MM-dd)}) as its value.
For example set the parameter to:

Code: Select all

Date: ${date(yyyy-MM-dd)}
This way you will obtain the current date at the bottom of the TOC pane.

Regards,
Alin
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply