Is it possible to use an Asset field as a Global Set? For example:
{{ companyInfo.logo }}
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.
Sign up to join this communityIf companyInfo
if your global and logo
if your Asset field, then you'd use it just like you would anywhere else keeping in mind that all relation fields (Assets, Users, Entries, Tags, Categories, etc.) always return a collection of results.
So, companyInfo.logo.first()
will return the first asset and if you want to loop through them all:
{% for image in companyInfo.logo %}
{{ image.getUrl() }}<br />
{% endfor %}