What is the difference between the property name="nameRashid" and name="./nameRashid"? | Community
Skip to main content
RashidJorvee
Level 4
Jun 6, 2018 6:39 AM UTC
Solved

What is the difference between the property name="nameRashid" and name="./nameRashid"?

How property name="nameRashid" and name="./nameRashid" are different from each other? Is there any technical difference or both are same? What is the recommended way to provide name to a node in AEM?

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
New Participant
Jun 6, 2018 8:19 AM UTC

when you add property name it is location where your item value would be store.

So if you say property name ./nameRashid means you are going to store this property value at currentResource/nameRashid.

If your property name is nameRashid, it is not going to store value anywhere.

Thanks

Arun

Arun Patidar

2 replies

Ratna_Kumar
Level 10
Jun 6, 2018 8:59 AM UTC

Hi Rashid,

Yes If you give property name = "nameRashid", it is not going to store anywhere.

If you give property name = "./nameRashid", then it will be going to store value in JCR repository.

Hope this helps!!

Thanks,

Ratna Kumar.

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Jun 6, 2018 8:19 AM UTC

when you add property name it is location where your item value would be store.

So if you say property name ./nameRashid means you are going to store this property value at currentResource/nameRashid.

If your property name is nameRashid, it is not going to store value anywhere.

Thanks

Arun

Translate
Arun Patidar