-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access to dateDeleted? #4493
Comments
You can access deleted elements by setting the trashed param: 'criteria' => [
'trashed' => true,
// ...
], Trashed entries will have their |
Great thanks for that. So with the
I'm getting Here is my complete code:
|
My current workaround was to fetch all disabled entries which worked ok but not ideal...
|
Are you running Craft 3.1? |
Yes, running Craft Pro 3.1.33 |
Sorry, I didn’t realize that we were actually unsetting the To update to 3.2 a little early, change your "require": {
"craftcms/cms": "3.2.x-dev#636ad42cf2656ec7a5e635ee2a7f81888bd9c59c as 3.2.0-RC3",
"...": "..."
} Then run |
OK cool thanks. |
@brandonkelly Works great. Thanks for your help on this. |
I have an endpoint that sets a response header when an entry is saved (code below).
Is there a similar method I can use when an entry is deleted?
The text was updated successfully, but these errors were encountered: