I'm looking at the list for System Events. Is there a way to fire an event when duplicating a document?
Basically, here's what's going on: Each page is given a unique link_attributes ID when saved (this field is hidden by default so people don't edit it). This is then referenced elsewhere for use with some TVs. But, when I duplicate that page, I get a duplicate link_attributes value which overrides the original when using that in a TV or in the index of my search engine.
If there is no System Event that I could use to clear the link_attributes field on document duplication, how would I accomplish this?
Thanks
did you check the System - Event OnResourceDuplicate for your plugin?
Sorry, this is the first time I've done anything in plugins for MODX. What does that mean?
Sorry, I didn't know that tab was event there. LOL
I did check that but the only thing different now is when I right-click and choose Duplicate, I get the pop-up box to enter new info. But when I click OK, it just hangs there. When I refresh the page, the duplicated page is there but the link_attributes field hasn't been cleared.
there isn't $resource, there is $oldResource and $newResource