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

refactor: Add support for craft-twigfield #81

Merged
merged 4 commits into from
Aug 8, 2022

Conversation

khalwat
Copy link
Contributor

@khalwat khalwat commented Jun 12, 2022

Adds support for craft-twigfield, which changes this static text area input:

Screen Shot 2022-06-12 at 3 19 25 AM

...into a syntax-highlighted Twig field with autocomplete support for the Twig and Craft APIs:

Screen Shot 2022-06-12 at 3 31 17 AM

@khalwat
Copy link
Contributor Author

khalwat commented Jun 12, 2022

You could also consider leveraging the TwigTemplateValidator class to validate the Twig code (or display errors in the CP) as well:

https://github.com/nystudio107/craft-twigfield/blob/develop/src/validators/TwigTemplateValidator.php

@khalwat
Copy link
Contributor Author

khalwat commented Jun 14, 2022

I added the TwigTemplateValidator for you too:

Screen.Recording.2022-06-14.at.4.09.26.PM.mov

@jalendport jalendport self-assigned this Aug 6, 2022
@jalendport jalendport merged commit 591c7e3 into jalendport:develop Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants