How can I conditionally display content if its a specific section?
Currently I'm trying this with no luck:
{% if entry.section == 'lettings' %}{{ entry.rentFrequency.label }}{% endif %}
How can I conditionally display content if its a specific section?
Currently I'm trying this with no luck:
{% if entry.section == 'lettings' %}{{ entry.rentFrequency.label }}{% endif %}
You're close!
SectionModel has 'name' and 'handle' attributes and one of those is probably what you're looking for.
{% if entry.section.handle == 'lettings' %}
{{ entry.rentFrequency.label }}
{% endif %}