New answers tagged

0

This sounds like an old bug that was fixed in a more recent version of Craft than the one you are on - https://github.com/craftcms/cms/issues/6379 Are you able to update Craft and your plugins to the latest version?


1

Would it be easier to upgrade to a later version of craft CMS 2 or CMS 3 Craft 3 was a major rewrite of the entire platform, so it will definitely be a lot easier to upgrade to a later version of Craft 2. In fact, you're probably going to have to upgrade your Craft 2 install regardless of whether you want to move forward to Craft 3 eventually, since it's ...


2

You can't put PHP code into Twig, and there's no straightforward way to write custom DB queries in Twig. That's by design – Twig is a templating language, not meant for custom queries or processing. Instead, you should provide a service object with utitily methods that you can call from Twig. Depending on your use-case, you can accept parameters (for example,...


Top 50 recent answers are included