Create Updatedby property for a node? | Community
Skip to main content
Tanmay137
New Participant
July 2, 2018
Solved

Create Updatedby property for a node?

  • July 2, 2018
  • 3 replies
  • 1749 views

Dear Community Users - I have a instance where I need to create and update a property(Updatedby); every time user makes the change in the page; the Jcr Node property value should be updated with the user login information.

Any leads here would be helpful.

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 arunpatidar

Hi,

You can write JCR Event Listener on /content/yoursite/path on MODIFIED, which will be triggered when page is modified and you can add updateBy(any property) in Page.

Example :

Adobe Experience Manager Help | Creating an Adobe Experience Manager Event Listener that tags pages

3 replies

Tanmay137
Tanmay137Author
New Participant
July 3, 2018

Thank you both. Let me look into this and I will reach out to you for any doubts.

VeenaVikraman
New Participant
July 3, 2018

Agree with Arun . Thats the best way you can achieve this if there is no other specific requirement.

arunpatidar
arunpatidarAccepted solution
New Participant
July 3, 2018

Hi,

You can write JCR Event Listener on /content/yoursite/path on MODIFIED, which will be triggered when page is modified and you can add updateBy(any property) in Page.

Example :

Adobe Experience Manager Help | Creating an Adobe Experience Manager Event Listener that tags pages

Arun Patidar