-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add Events section data model #116
base: feat/resources
Are you sure you want to change the base?
Conversation
pl-mnm
commented
Mar 3, 2025


config/project/entryTypes/event--12c6ecb1-eb21-40a2-aca1-217b86047c44.yaml
Show resolved
Hide resolved
config/project/entryTypes/event--12c6ecb1-eb21-40a2-aca1-217b86047c44.yaml
Outdated
Show resolved
Hide resolved
config/project/entryTypes/event--12c6ecb1-eb21-40a2-aca1-217b86047c44.yaml
Outdated
Show resolved
Hide resolved
config/project/entryTypes/event--12c6ecb1-eb21-40a2-aca1-217b86047c44.yaml
Show resolved
Hide resolved
config/project/fields/eventTypes--9b5f9007-3f61-4857-b978-fdfbc4b29dba.yaml
Show resolved
Hide resolved
$element = $event->sender; | ||
|
||
// Only check elements in the include-list | ||
$context = $element->section->handle . ':' . $element->type->handle; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Craft 5 some entries may not have a section, so $element->section->handle
will thrown an error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please tell me how to replace it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
… = ($element->section->handle ?? '*') . ':' …