Nate
Nate

Reputation: 361

AEM 6.1 - restrict component to specific template

I've built a component for a new template in AEM 6.1 and I need it to only appear when authoring on that specific template (adding new components to that page and such). Main reason is there's a lot components in the sidekick and we want to clean it up; plus this component will only ever be usable on this template (because of authentication reasons). I'm told I need to achieve this via the allowedParent jcr attribute in the components .content.xml files.

Unfortunately upgrading from 6.1 isn't a possibility due to business reasons. Any help is greatly appreciated.

Upvotes: 0

Views: 414

Answers (1)

Maximilian Voss
Maximilian Voss

Reputation: 71

You just have to make this component available via your design which is usually located at /etc/designs/[yourdesign]. There you will find a jcr:content node and all page templates below it. Just find there the right parsys and add this component.

See also: how properties are stored in /etc/designs for design dialog

Upvotes: 2

Related Questions