2

I'm used to writing Twig 1 syntax, and since switching to Craft 3 (which uses Twig 2) I keep getting lots of deprecation errors in the control panel.

Is there any reference material that provides the Twig syntax I should be using instead for Craft 3 sites?

  • The deprecation errors shown in the control panel should also tell you how to update your syntax accordingly, at least all the ones I have seen did. – Seth Warburton Apr 6 '18 at 8:47
2

Yes, with the launch of Craft 3, Pixel and Tonic have provided some documentation on switching from Craft 2 syntax to Craft 3.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.