Page 1 of 1

Specify the root map via custom plugin

Posted: Wed May 13, 2020 2:22 am
by Lemesany
Hi! I'm using a custom plugin that pulls in Oxygen options via the option.xml file in a plugin.jar , and distribute that out to many writers.
I tried setting my root map to the default "main" map I use for keys, and exporting my options to save that and distribute to writers, but I'm not seeing any additional entry in the options.xml file that saves such option. Is this an existing an option I can add to my options.xml file to default to a specific root map in the Dita Maps Manager?

Re: Specify the root map via custom plugin

Posted: Wed May 13, 2020 8:13 am
by Radu
Hi,

Unfortunately the root map setting is not saved in the global settings, it is saved in the project.xpr file.
So you cannot import a global XML settings file and impose the root map. Also the root map location needs to be an absolute URL-like absolute path which would not be portable.
For now you can use our Java code to force impose the root map URL after the application has started:

post57170.html

Regards,
Radu