Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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-compone...
https://github.com/Adobe-Consulting-Services/acs-aem-commons/pull/639 , could not resolve the issue yet. 

Any suggestions will help!

 

@arunpatidar @vivekanand-mishra  

1 Accepted Solution

Avatar

Correct answer by
Level 2

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.

View solution in original post

3 Replies

Avatar

Community Advisor

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

Avatar

Correct answer by
Level 2

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.