On 10/8/24 04:12, Carlos Villegas wrote:
Understood, not a must have feature, in this case, just exploring.
OK.
Another question about when the addon directory in the backend is scanned.
It seems that if I update my custom configuration in the backend addon
dir, next time I open a file using it, it gets the updates, without
restarting the backend, but sometimes it doesn't work, not sure.
I think sometimes I've updated only a CSS file. Do I need to touch
the .xxe file, for example, to get it reloaded?
No, it won't work.
What if a client had a
file opened when the update occurred and another client opens a file
using the updated addon.
The clients, whether existing or new, will *not* use the updated addon.
Or is a backend restart always required?
Yes, to reload the .xxe configuration files, but not the .css CSS
stylesheet files. More info below.
This is a consideration for the server deployment, if I don't need to
restart the backend server, just update the custom addons, the better.
A CSS stylesheet is always loaded from its source file whenever a
document use it. For example, if document A.xml uses CSS stylesheet
A.css and you modify A.css, you'll see your change when you'll reopen
A.xml (or use the "Change Stylesheet" menu item found in the "Edit"
menu) or open any XML document styled using A.css.
".xxe" configuration files are read once for all when you start
xxeserver, the backend of XXEW
(https://www.xmlmind.com/xmleditor/_web/doc/manual/xxeserver_reference.html).
Therefore, the only way to reload a configuration file is to restart
xxeserver.
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support