Skip to main content
tc94524330
Level 3
Oct 16, 2015 2:28 AM UTC
Solved

Restrict only one component to drag in to 2 column component

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

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

2 replies

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

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

Translate
narayanank84409
Level 4
Oct 16, 2015 2:28 AM UTC

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"/>

Translate