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
June 14, 2021
Solved

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

  • June 14, 2021
  • 1 reply
  • 1330 views

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

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

1 reply

Ritesh_Mittal
Community Advisor and Adobe Champion
Ritesh_MittalCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
June 14, 2021

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

samikshaa223429
Level 3
June 14, 2021

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