Page 1 of 1

How to display the build date in WebHelp Classic?

Posted: Fri Mar 30, 2018 6:59 pm
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.

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

Posted: Wed Apr 04, 2018 5:55 pm
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