In a Parsys need to restrict the no. of component count | Community
Skip to main content
Adobe Employee
April 5, 2023
Solved

In a Parsys need to restrict the no. of component count

  • April 5, 2023
  • 1 reply
  • 1219 views

Hi Team, 
I need to restrict the no. of component count in a parsys foundation/components/parsys, I am working in aem 6.5, service pack 6.5.11 and I tried these old threads 
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/restrict-number-of-component-in-parsys/m-p/270786/thread-id/46586
https://github.com/Adobe-Consulting-Services/acs-aem-commons/pull/639 , could not resolve the issue yet. 

Any suggestions will help!

 

@arunpatidar @vivekanand-mish  

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 NibeditaNa

Posting the solution which worked for me here.
The component e.g. /apps/XXX/components/content/componentName where I intend to add the parsys limiter functionality, there we need to create a clientlib folder of node type cq:ClientLibraryFolder and then add categories as cq.authoring.editor.hook of String[]. Tried using /apps/acs-commons/touchui-widgets/source/touchui-limit-parsys.js OOTB script so we have to load these below lines in js.txt of that component where we want to have parsys limiter functionality.
#base=../../../../../acs-commons/touchui-widgets/configure-limit-parsys 
touchui-limit-parsys.js

 

Note : ../../../../../acs-commons/touchui-widgets/configure-limit-parsys  - this is the relative path of the /apps/acs-commons/touchui-widgets/source/touchui-limit-parsys.js from where we are accessing it.

1 reply

arunpatidar
Community Advisor
Community Advisor
April 5, 2023

Not sure if the feature is compatible with AEMaaCS or not?

https://adobe-consulting-services.github.io/acs-aem-commons/features/parsys-limiter/index.html is not available.

 

But 6.5 it does work.

Arun Patidar
NibeditaNaAdobe EmployeeAuthorAccepted solution
Adobe Employee
April 6, 2023

Posting the solution which worked for me here.
The component e.g. /apps/XXX/components/content/componentName where I intend to add the parsys limiter functionality, there we need to create a clientlib folder of node type cq:ClientLibraryFolder and then add categories as cq.authoring.editor.hook of String[]. Tried using /apps/acs-commons/touchui-widgets/source/touchui-limit-parsys.js OOTB script so we have to load these below lines in js.txt of that component where we want to have parsys limiter functionality.
#base=../../../../../acs-commons/touchui-widgets/configure-limit-parsys 
touchui-limit-parsys.js

 

Note : ../../../../../acs-commons/touchui-widgets/configure-limit-parsys  - this is the relative path of the /apps/acs-commons/touchui-widgets/source/touchui-limit-parsys.js from where we are accessing it.

arunpatidar
Community Advisor
Community Advisor
April 6, 2023

Thanks for sharing @nibeditana 

Arun Patidar