Skip to content

Event when creating new draft in new site #14678

Closed Answered by brandonkelly
kristofser asked this question in Q&A
Discussion options

You must be logged in to vote

When you add a new site to an entry, the entry is saved from the current site, so it’s expected that siteId will be the old site from EVENT_AFTER_PROPAGATE. But $entry->newSiteIds will be set to an array with the newly-added site’s ID, so that’s what you’re going to want to look for.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by brandonkelly
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants