Skip to content

Cannot access Globals set variables from template #9368

Discussion options

You must be logged in to vote

Hey 👋

It looks like you're storing the site_logo as an array of assets, rather than just a single asset. Unless you have multiple logos, you probably want to set "Max Items" to 1 in your asset field's config so the syntax you're using works.

Otherwise, the Assets field would allow you to select multiple assets for the logo and you'd have to do this to make it work:

{{ branding:site_logo }}
    <img src="{{ url }}" /> 
{{ /branding:site_logo }}

You can see more information about Templating w/ the Assets Fieldtype here.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by giancarloerra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment