Skip to Content

WCMS restrict allowed/displayes types in wizard&editor during select/create Component

Hi,

given the following:

   <relation code="XContainer2X" localized="false" autocreate="true">
         <deployment table="tabc2tab" typecode="9999" />
         <sourceElement type="XContainer" cardinality="many" navigable="false"/>
         <targetElement type="X" qualifier="xx" cardinality="many" collectiontype="list" />
   </relation>

 <itemtype code="XContainer" generate="true" extends="SimpleCMSComponent"      autocreate="true"
                   jaloclass="net....XContainer">
 </itemtype>

 <itemtype code="X" extends="SimpleCMSComponent" jaloclass="net....X">
 </itemtype>

 <itemtype code="YContainer" generate="true" extends="XContainer" autocreate="true"
                   jaloclass="net......XContainer">
             <description>This is container used to group ycomponents.</description>
 </itemtype>

 <itemtype code="Y" generate="true" extends="X" autocreate="true"
                   jaloclass="net.....Y">
 </itemtype>

How can I avoid tha that Both Container (X,Y) can see both Childs.

ContainerX should only be able to select X-Components during "select/create" Wizard/Editor and ContainerY should only be able to select Y-Components during "select/create" Wizard/Editor

is there any line I should add in the wizardConfig_X.xml and/or editorArea_X.xml?

Greatings David

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2015 at 02:01 PM

    editorArea Config :

     <parameter>
         <name>restrictToCreateTypes</name>
         <value>putTypesHere</value>
     </parameter>
    
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.