Skip to main content
Level 2
Jan 18, 2024 7:15 AM UTC
Solved

[AEMasaCS]How to input the values of rep:itemNames in the permission settings

Hi All,

I am trying to utilize the restrictions to limit the access to the nodes in permission settings. However, when I look into rep:itemNames, I cannot find the right way to input multiple values in permissions module of AEM console.

Not working if I input:
rep:itemNames = "au,us,fr"       //when clicking edit, they are displayed as: rep:itemNames=au, rep:itemNames=us, ....
or
rep:itemNmaes = "au, us, fr"
or
rep:itemNmaes = "au", "us", "fr"

I cannot find any useful documents easily. Any ideas, please? 

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
Community Advisor
Jan 18, 2024 8:55 AM UTC

Ahh ok, you are trying from AEM console

You need add one by one and after that you would open it again, it would combine the field.
example, I added ae and de separately and after opened it is combined.

 

 

 

 

Arun Patidar

10 replies

arunpatidar
Community Advisor
Community Advisor
Jan 18, 2024 7:59 AM UTC

Hi @hughshao 
Try with 

rep:itemNames = "[au,us,fr]"

Translate
Arun Patidar
HughShaoAuthor
Level 2
Jan 18, 2024 8:25 AM UTC

Hi @arunpatidar 

Still not working. Looks like not able to input in this format.

Translate
Raja_Reddy
Community Advisor
Community Advisor
Jan 18, 2024 8:22 AM UTC

Hi @hughshao 
Try like this
rep:itemNames = "au,us,fr"
This should work, and when you edit it, you may see each value as a separate entry.

Multiple Lines:

rep:itemNames = au
rep:itemNames = us
rep:itemNames = fr

Array Syntax:
rep
:itemNames = [au, us, fr]




Translate
HughShaoAuthor
Level 2
Jan 18, 2024 8:31 AM UTC

Hi @raja_reddy ,

rep:itemNames = "au,us,fr" is not wokring. However, when edit it, as you say, it does display as sperate ashout: 

rep:itemNames="au",rep:itemNames="us",rep:itemNames="fr"

After saving it without any changes, it is working now... Just the format looks like weird.

Also, rep:itemNames is only reading the node instead of its properties (e.g. node title). Any idea how to get node title together? ^.^

Translate