linkit
linkit copied to clipboard
Field returning null
I've added a field, but when referencing in twig it's returning null, via {{ entry.cta }}. The field exists, but values don't see to be accessible. here's an inspection of the field:
Attributes:
columnPrefix
context global
groupId 4
handle cta
id 45
instructions
name CTA
oldHandle
required
settings {"types":["custom","entry"],"defaultText":"","allowCustomText":"1","allowTarget":"1","entrySources":["singles","section:2","section:7","section:3"],"entrySelectionLabel":"Link to an page\/entry","assetSources":"*","assetSelectionLabel":"Link to an asset"}
translatable 1
type FruitLinkIt
Any ideas of what I might be missing? Thanks.
Update: I seem to be able to access the field in a matrix, but still not at entry root:
{% for action in entry.ctas %}
{{ action.cta|inspect }}
{% endfor %}