Expand my Community achievements bar.

SOLVED

Restrict only one component to drag in to 2 column component

Avatar

Level 4

Hi,

I have a custom two column component which works similar to 2 column component. I want to be able to drag only text component in to it. How can we restrict that? I mean from sidekick i should be able to drop only text component in to the parsys present in the component. Is it possible to achieve that behavior?

1 Accepted Solution

Avatar

Correct answer by
Level 10

You can mention which component to be allowed within the parsys in your 2 column component. refer [1] for the same

[1] http://stackoverflow.com/questions/23275062/restrict-the-components-in-aem-5-6-1

View solution in original post

2 Replies

Avatar

Level 4

Create configuration for that.

Ex : Convert it as container component and give parsys

 For that parsys, set design path to accept only that component.

<parsys name

 jcr:lastModified="{Date}2015-07-29T10:07:48.893-04:00"

                jcr:lastModifiedBy="admin"

                jcr:primaryType="nt:unstructured"

                sling:resourceType="foundation/components/parsys"

                components="[group:name]/particular component"/>

Avatar

Correct answer by
Level 10

You can mention which component to be allowed within the parsys in your 2 column component. refer [1] for the same

[1] http://stackoverflow.com/questions/23275062/restrict-the-components-in-aem-5-6-1