Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM 6.4 - Editable templates - Multiple parsys inside single component

Avatar

Avatar
Validate 1
Level 1
guglielmof89
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
guglielmof89
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
guglielmof89
Level 1

27-08-2018

Hi,

Regarding editable templates, I'm having a problem setting up two different lists of allowed components for two distinct parsys, which are included a single component.

I've tried in three ways:

- Adding the old "page resType --> parName --> components: [...]" configuration under project design folder (now in apps, not etc)

- Component wrapper, with 2 parsys. Editing the list of allowed components for this specific component works, but i have the same list on both the parsys.

- Component wrapper, which includes 2 other components (wrapper-right, wrapper-left). Left and right extend wcm responsivegrid component with his design dialog OOB. Editing right and left list of allowed components results in no components available on both responsive grids.

Is there any way to configure two separate lists of components for the 2 parsys ?

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 1
guglielmof89
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
guglielmof89
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
guglielmof89
Level 1

28-08-2018

Thank you, I've succeded using another method.

For anyone interested:

- Created two wrapper components (wrapperLeft, wrapperRight, both with superType --> responsivegrid), included by wrapper component (with data-sly-resource), instead of referencing directly two responsivegrid

- Created and linked two different policies for wrapperLeft and wrapperRight

Now, if I add multiple wrapper components to the root parsys, the responsive grids follow these policies rules

Thanks dgordon86​ and @Arun Patidar for the suggestions

Answers (6)

Answers (6)

Avatar

Avatar
Boost 1
Level 1
Vikash_kumar_18
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
Vikash_kumar_18
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
Vikash_kumar_18
Level 1

26-05-2021

I created a component specific policy and manually added components [] property and added the required component group also.

There are three parsys in my components and the only above added components are allowed in those parsys.

 

How I will add another component or group without crx/de or code change because the Allowed Component policy is available only on the template level?

 

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

28-08-2018

Nice solution - thank you for posting!

Avatar

Avatar
Ignite 1
Employee
dgordon86
Employee

Likes

49 likes

Total Posts

73 posts

Correct Reply

26 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile

Avatar
Ignite 1
Employee
dgordon86
Employee

Likes

49 likes

Total Posts

73 posts

Correct Reply

26 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile
dgordon86
Employee

28-08-2018

I'm assuming your wrapper component includes the Parsys Left/Right via a data-sly-resource or cq:incude? These will be artificial resources at first and the Template editor does not seem to like artificial resources. The solution is to make sure the nodes exist, either by manually adding them in the Template Type definition or by using something like cq:template in the component definition. Check out how Asset Share Commons does this:

Root Component - asset-share-commons/root.html at develop · Adobe-Marketing-Cloud/asset-share-common...

Template Type Structure -asset-share-commons/.content.xml at develop · Adobe-Marketing-Cloud/asset-s...

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,348 likes

Total Posts

3,226 posts

Correct Reply

916 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,348 likes

Total Posts

3,226 posts

Correct Reply

916 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

28-08-2018

Hi,

I think if you are using other parsys inside then you will get the default components because policy is set for main component.

you can set policy for other 2 parsys component but policy will be effective if you drop that component as a main component in other parsys.

Thanks

Arun

Avatar

Avatar
Validate 1
Level 1
guglielmof89
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
guglielmof89
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
guglielmof89
Level 1

28-08-2018

I know I can set different policies for different parsys, but I need to set different policies for two different parsys that may be added to the page main parsys.

These two parsys or responsive grids are inside a single component.

This is the situation:

Page
|--- Main Parsys ---> Policy ( group1 - Contains wrapper component)

So if I add a wrapper component to the main parsys, I'll have two new parsys. I need to set two different policies for these parsys, that are not present in the initial content of the page, but they are optional (included in the wrapper component).

Page

|--- Main Parsys ---> Policy ( group1 - Contains wrapper component)

         |---->Wrapper component

                         |----> Parsys Left ( component group 2 )

                         |----> Parsys Right( component group 3)

Also with the help of the article I've not been able to set these policies.

Thank you anyway

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,348 likes

Total Posts

3,226 posts

Correct Reply

916 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,348 likes

Total Posts

3,226 posts

Correct Reply

916 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

27-08-2018

Hi,

You can create different policies for different parsys.

please check component level policy at AEM Developer Learning : Dynamic (Editable) Templates in AEM 6.3 : Part-1