configuring cc_config.xml outside the installed directory

Post here questions and problems related to oXygen frameworks/document types.
roopesh79
Posts: 26
Joined: Fri Jul 29, 2022 9:55 am

configuring cc_config.xml outside the installed directory

Post by roopesh79 »

Hi Team,
Is there any way to configure the cc_config.xml with in a custom framework or outside the oxygen installed directory? I have a use case for modifying some attribute values frequently.
Thanks
Roopesh
Radu
Posts: 9119
Joined: Fri Jul 09, 2004 5:18 pm

Re: configuring cc_config.xml outside the installed directory

Post by Radu »

Hi Roopesh,

Our advice for customizing framework related settings (including the cc_config.xml) is to create an extension of a certain framework outside of the Oxygen installation folder:
https://blog.oxygenxml.com/topics/autho ... aring.html
So we never recommend making changes inside the Oxygen installation folder.
Once you have a framework customization outside of the Oxygen installation folder you can have your own cc_config.xml there:

https://www.oxygenxml.com/doc/ug-editor ... ually.html
If you extend a framework, you need to copy the content of the cc_config.xml file from the base framework and modify it (e.g. create a resources folder in your framework extension folder and place the file there). You also need to make sure that the folder that contains the cc_config.xml file in your extension (e.g. resources) is listed in the Classpath tab before the one from the base framework.

If you only want to make small changes or add extra rules in your custom content completion configuration file, you need to name it cc_config_ext.xml and all the rules inside it are merged with the base cc_config.xml file. The merging is done by taking all the rules specified in the cc_config_ext.xml file into consideration after processing the set of rules from the base cc_config.xml file.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
roopesh79
Posts: 26
Joined: Fri Jul 29, 2022 9:55 am

Re: configuring cc_config.xml outside the installed directory

Post by roopesh79 »

Thank you for the suggestion
Post Reply