I created two new CMS Customized Components: ContainerComponent, extending SimpleCMSComponent, and ImageComponent, extending CMSImageComponent.
1. When the user tries to add the ImageComponent inside the ContainerComponent, on CMS Cockpit, the wizard shows the ID and CatalogVersion inputs (user has to fill these inputs).
2. When the user tries to add the ImageComponent to a Slot (outside the ContainerComponent), on CMS Cockpit, the wizard does not show the ID and CatalogVersion inputs (user does not have to fill these inputs).
Like the following:
Method 1:
Method 2:
The wizard configurarion is this:
<?xml version="1.0" encoding="UTF-8"?>
<wizard-config showPrefilledValues="false" selectMode="true" createMode="true"
displaySubtypes="true">
<displayed-properties>
<group qualifier="General" visible="true" initially-opened="true">
<label lang="en">General</label>
<property qualifier="CMSItem.name"/>
</group>
<group qualifier="Properties" visible="true" initially-opened="true">
<label lang="en">Properties</label>
<property qualifier="ImageComponent.title" />
<property qualifier="ImageComponent.text" />
<property qualifier="CMSImageComponent.media"
editorCode="simpleMediaReferenceSelector" />
</group>
</displayed-properties>
</wizard-config>
<?xml version="1.0" encoding="UTF-8"?>
<wizard-config showPrefilledValues="false" selectMode="true" createMode="true"
displaySubtypes="true">
<displayed-properties>
<group qualifier="General" visible="true" initially-opened="true">
<label lang="en">General</label>
<label lang="de">General</label>
<property qualifier="CMSItem.name"/>
</group>
<group qualifier="Properties" visible="true" initially-opened="true">
<label lang="en">Properties</label>
<label lang="de">Eigenschaften</label>
<property qualifier="KPContainerComponent.cssClass" />
<property qualifier="KPContainerComponent.components" />
</group>
</displayed-properties>
</wizard-config>
What I need is that all areas (wizard, editor, etc) do not show the fields that the user does not need to fill, like ID, CatalogVersion or any other.
Why is this happening? Since, as far as I know, the configuration of the wizard area is ok.
NOTE: Some names and properties were changed because it exposes client's data. No code was harmed in the making of this question.