Closed piotrpog closed 7 months ago
Am having the exact same issue.
Rendering functions is actually a feature that's exclusive to additionalMeta
(the docs could be clearer about that). However, I guess I can see how this feature could be useful to fieldProfiles
or defaultMeta
, so I'll label this as a feature request for now.
Support for closures (and Twig object templates) in fieldProfiles
and defaultMeta
has been added to SEOMate 3.0 (currently in beta) for Craft 5 🎉
See the updated docs on the fieldProfiles
setting for more info.
I tried to pass some string to title field instead of using values from fields. To do that i deduced i need to use function instead of field handle. Like it was showed in docs:
So i tried to test it, like this:
Unfortunetly it does not work, title takes value of site name if i try this.