I try to create a comprehensive tag list of Old vs new craft tags. SO lets start Craft 3 Changes
- All loops have to be called with
.all()
- Macros have to be imported in EVERY file they apear. Not just in the parent file 🤬
_self
macros have to be imported into the parent macro with{% import _self as macro %}
SE Querstion
- Old:
{% if craft.config.environment == 'live' %}
- New:
{% if craft.app.config.general.environment == 'live' %}
- Old:
{{ entry.locale }}
- New:
{{ craft.app.locale }}