Adding a parsys statitcally in the sling:resourceType , does not allow users to add components to it. | Community
Skip to main content
samikshaa223429
Level 3
Jun 14, 2021 3:34 PM UTC
Solved

Adding a parsys statitcally in the sling:resourceType , does not allow users to add components to it.

hi ,

 

I have a scenario where I am using a static template to render content based on page properties selected by the user, However we need to add a parsys to the template, which allows authors to add editable components to it. 

I added the below code to add parsys at the end of the template rendering HTML ,


<div data-sly-resource="${ 'par' @ resourceType='wcm/foundation/components/parsys'}"></div>

 

However I am not able to add any components into the parsys for some reason. 

 

Can you help ?

 

Thanks,

Samiksha 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Ritesh_Mittal
Ritesh_MittalAccepted solution
New Participant
Jun 14, 2021 3:59 PM UTC

Hi @samikshaa223429 ,

 

You need to allow the components, which you want to configure in the parsys. You can achieve it either by going to 'Design' mode in page in author instance or can set it via code as well. 

 

Notably, design mode is not offered on pages created using dynamic templates but in your case since you are using static template so it will be available.

 

Please check this old thread-

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/adding-parsys-from-code-in-aem-6-5/qaq-p/380209

4 replies

Ritesh_Mittal
Ritesh_MittalAccepted solution
New Participant
Jun 14, 2021 3:59 PM UTC

Hi @samikshaa223429 ,

 

You need to allow the components, which you want to configure in the parsys. You can achieve it either by going to 'Design' mode in page in author instance or can set it via code as well. 

 

Notably, design mode is not offered on pages created using dynamic templates but in your case since you are using static template so it will be available.

 

Please check this old thread-

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/adding-parsys-from-code-in-aem-6-5/qaq-p/380209

Translate
samikshaa223429
Level 3
Jun 14, 2021 4:11 PM UTC

hi Ritesh,

 

Can you provide some details on how to set it via code? 

I am not able to see the design mode option on the template i am currently using

Translate