Overriding model property with {% do %} tag not working in Craft 4 #13945
-
In Craft 3, my SEO plugin could do this: {% do entry.seo.setTwitterTitle('Twitter title') %}
{% extends '_layout.twig' %}
{% block content %}
{{ dump(entry.seo.twitterTitle) }} {# Twitter title #}
{% endblock %} But that doesn't work in Craft 4. I've looked at this a bunch of times (as Craft 4 has been out a long while) but I can't seem to get to the bottom of this. Could something in Craft have changed that prevents this way of working? |
Beta Was this translation helpful? Give feedback.
Answered by
brandonkelly
Dec 11, 2023
Replies: 1 comment 4 replies
-
Nothing in Craft 4 specifically would have affected this. Maybe a breaking change in whatever plugin was providing that |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
brandonkelly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nothing in Craft 4 specifically would have affected this. Maybe a breaking change in whatever plugin was providing that
seo.setTwitterTitle()
method?