Page 1 of 1

How can I insert the current upload date into the main page or topics?

Posted: Fri Jul 16, 2021 3:21 pm
by Anna Green
Hi,

I have a project in Oxygen XML Editor (v 21.0).
I upload the project to webhelp (DITA Map WebHelp Classic (deprecated))

How can I insert the current upload date into the main page or topics?
I know Oxygen has ${timestamp} and ${date(yyyy-MM-dd)} variables. But where can I insert them? Directly to the page?

Image

I have read this page https://www.oxygenxml.com/doc/versions/ ... ables.html. But I did not understand how to insert the variables :(

Re: How can I insert the current upload date into the main page or topics?

Posted: Tue Jul 20, 2021 8:57 am
by alin
Hello,

FIrst of all I want to let you know that the WebHelp Classic plugin for DITA-OT that comes bundled in Oxygen 21.0 has been deprecated and removed from Oxygen distribution starting with version 23. The newly versions of Oxygen includes an enhanced version of DITA-OT plugin: WebHelp Responsive.

We have a customization topic for the WebHelp Responsive output that covers your use case. You can find more details here: https://www.oxygenxml.com/doc/versions/ ... aid-title3
The source files for this customization (Publishing Template) can be found here: https://github.com/oxygenxml/oxygen-pub ... ation-time

We highly recommend you to switch to WebHelp Responsive output format.

If you choose to continue using the WebHelp Classic plugin you need to customize the generated output in order to insert the date and time in your HTML content. The available customization methods are described here: https://www.oxygenxml.com/doc/versions/ ... ssing.html

The editor variables are not useful in your case because they are not being evaluated and expanded in text content. They are evaluated throughout the Oxygen's GUI in places like dialog inputs, data tables, scenario parameter values, etc.

Regards,
Alin