Jump to content


Photo

addHookBefore save Page, is there a way to get values being replaced?

save event hook before

  • Please log in to reply
2 replies to this topic

#1 elitLG

elitLG

    Jr. Member

  • Members
  • PipPip
  • 11 posts
  • 2

Posted 12 April 2012 - 04:50 AM

Hi,

Like the title says, is there a way to check what the values were before saving, to check for fields that have changed etc.

Both the before and after event now seems to get the Page object after it has been updated.

#2 Soma

Soma

    Hero Member

  • Moderators
  • 3,186 posts
  • 1739

  • LocationSH, Switzerland

Posted 12 April 2012 - 05:28 AM

Hi and welcome!

Very unusual question for a first post ;)

Does this help? http://processwire.c...ch__1#entry9321

@somartist | modules created | support me, flattr my work flattr.com


#3 elitLG

elitLG

    Jr. Member

  • Members
  • PipPip
  • 11 posts
  • 2

Posted 16 April 2012 - 06:33 AM

Thank you,

That was what I was looking for.





Also tagged with one or more of these keywords: save, event, hook, before

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users