You are looking at documentation for an older release. Not what you want? See the current release documentation.
The sites are created during portal initialization, that is, when the server starts for the first time.
So if you deploy your extension after that, your extension should trigger a re-initialization process,
by setting the override
value-param to true as said before:
<value-param>
<name>override</name>
<description></description>
<value>true</value>
</value-param>
If this parameter is omitted, it is defaulted to false.
After your site is created, its preferences persists in database.
When you modify your extension and redeploy it, you need to set importMode
to either merge or overwrite
to make your extension update/override the persistent data; otherwise, the modification will not take effect.
The
valid options of importMode
:
importMode | Description |
---|---|
conserve | Imports data when it does not exist, otherwise do nothing. |
insert | Imports data when it does not exist, otherwise performs a strategy that adds new data only. |
merge | Imports data when it does not exist, and updates data when it exists. |
overwrite | Overwrites whatever data. |