Setting on virtual site node

Question

How do you add a setting to the Virtual Site node/page?

Answer

To set new properties on a virtual site node (it is the same principle as for all other existent node types), you can use the modifier extends to add a new mixin to an existing node type like:

[jmix:mySiteConfig] mixin
 extends = jnt:virtualsite
 - myNewProperty (string)

You can deploy this definition in any module; if it is a system module or if it is activated on the site, the mixin will appear in the edit screen of the virtual site node.