Skip to content

Look into validating twig content in preparse field settings #78

@jalendport

Description

@jalendport

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions