Maybe Craft 4 is playing games with me but im stuck on this problem:
linkedEntry
is an entry field which is limited to 1 entry.
This outputs the section handle correctly
{% set linkedEntry = category.linkedPage %}
{% dd(linkedEntry.section.handle) %}
This tells me that the section()
function is called without an parameter
{% set linkedEntry = category.linkedPage %}
{% if linkedEntry.section.handle === 'exampleHandle' %}
And this tells me that i cant call the attribute section
on null
{% if category.linkedPage.section.handle === 'exampleHandle' %}
Am i missing something thats new in Craft 4?
Greetings