There is a problem in customizing the widget system in “html” render-mode. The problem is that
MoquiDevConf.xml is the last configuration file to be loaded by the system and hence we cannot override anything in that file, and that file has the following code section which prevents me from overriding
DefaultScreenMacros.html.ftl. So in order to test my custom widgets I have to touch community code and comment-out that
<screen-text-output .../> tag.
I’m not sure what’s the best approach here? Do we comment out this line, or change component loading-sequence, or maybe allow a dev-settings section to override specifically for the development environment? Or is it simply regarded as OK behavior to patch the core components (runtime) during development?
<screen-facade boundary-comments="true"> <!-- The default conf file has a macro location defined for html already, but this is an example of how to refer to a file to override the default macros. --> <screen-text-output type="html" mime-type="text/html" macro-template-location="template/screen-macro/ScreenHtmlMacros.ftl"/> </screen-facade>