-
Notifications
You must be signed in to change notification settings - Fork 4
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 behaviour for Categories Craft 4 #95
Comments
Thanks for reporting @jlachancekffein! This was fixed in today's update (version 4.0.10 for Craft 4, 5.0.1 for Craft 5) |
Sorry, but there is a typo in the 2nd parameter: Event::on(Category::class, Entry::EVENT_DEFINE_BEHAVIORS, function(DefineBehaviorsEvent $event) {
$event->behaviors[$this->id] = ElementSeoBehavior::class;
}); Should be |
That what happens when fixing things quickly... Releases tagged for both again with working code! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The version 4.0.x does not work for categories because the behaviors are not registered.
Here is the solution:
The text was updated successfully, but these errors were encountered: