OnResourceDuplicate
Last updated Oct 14th, 2026 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn moreEvent: OnResourceDuplicate¶
Fires just after the Resource has been duplicated.
- Service: 1 - Parser Service Events
- Group: Resources
Event Parameters¶
| Name | Description |
|---|---|
| newResource | A reference to the newly created modResource object. |
| oldResource | A reference to the modResource object that was duplicated. |
| newName | The name given to the duplicate. |
| duplicateChildren | Whether child Resources were duplicated as well. |
| prefixDuplicate | Whether a prefix was added to the name of the duplicate. |
| publishedMode | The publish state to give the duplicate: ‘preserve’, ‘publish’ or ‘unpublish’. |
See Also¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn more










