Skip to content
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

By Section Type #9

Closed
smockensturm opened this issue Jun 14, 2018 · 3 comments
Closed

By Section Type #9

smockensturm opened this issue Jun 14, 2018 · 3 comments

Comments

@smockensturm
Copy link

Hi. This is really helpful and works great.

if ($entry->section->handle === 'blog' && !$this->event->isNew)

How might I check for section type, please?

@theskyfloor
Copy link

@smockensturm do you mean entry type?

@smockensturm
Copy link
Author

Maybe. Say we have a section called Forms with two types: Long and Short. Would that be $entry->type->handle or $entry->section->type-handle

@theskyfloor
Copy link

$entry->type->handle should do the trick. Let me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants