In a Parsys need to restrict the no. of component count | Community
Skip to main content
Employee
Apr 5, 2023 8:32 AM UTC
Solved

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

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.
NibeditaNaAccepted solution
Employee
Apr 6, 2023 12:19 PM UTC

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.

3 replies

arunpatidar
New Participant
Apr 5, 2023 10:15 AM UTC

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.

Translate
Arun Patidar
NibeditaNaAuthorAccepted solution
Employee
Apr 6, 2023 12:19 PM UTC

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.

Translate
arunpatidar
New Participant
Apr 6, 2023 12:56 PM UTC

Thanks for sharing @nibeditana 

Translate
Arun Patidar