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

Look into validating twig content in preparse field settings #78

Open
jalendport opened this issue Oct 27, 2021 · 1 comment
Open

Look into validating twig content in preparse field settings #78

jalendport opened this issue Oct 27, 2021 · 1 comment

Comments

@jalendport
Copy link
Owner

From Andrew Welch:

Jalen, feel free to steal if it helps: https://github.com/nystudio107/craft-seomatic/blob/develop/src/validators/TwigExpressionValidator.php -- it renders the Twig code, and adds any errors to the model. You just add the TwigExpressionValidator to the model fields that need it: https://github.com/nystudio107/craft-seomatic/blob/develop/src/models/MetaScript.php#L188

@khalwat
Copy link
Contributor

khalwat commented Aug 8, 2022

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

2 participants