Restrict only one component to drag in to 2 column component | Community
Skip to main content
tc94524330
Level 3
October 16, 2015
Solved

Restrict only one component to drag in to 2 column component

  • October 16, 2015
  • 2 replies
  • 1090 views

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.
Best answer by Lokesh_Shivalingaiah

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

narayanank84409
Level 4
October 16, 2015

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

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
October 16, 2015

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