Create Updatedby property for a node? | Community
Skip to main content
Tanmay137
Level 2
Jul 2, 2018 6:25 PM UTC
Solved

Create Updatedby property for a node?

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.
arunpatidar
arunpatidarAccepted solution
New Participant
Jul 3, 2018 7:49 AM UTC

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

3 replies

Tanmay137
Tanmay137Author
Level 2
Jul 3, 2018 12:48 PM UTC

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

Translate
VeenaVikraman
New Participant
Jul 3, 2018 10:17 AM UTC

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

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Jul 3, 2018 7:49 AM UTC

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

Translate
Arun Patidar