Assign variables from link list

New Member
1 0 0
{% for link in linklists.video-links.links %}
      
{{ link.title }}  {{ link.url }}
{% assign link.title  =  link.url  %}




{% endfor %}

Hi I'm trying to assign variables from link list. 

 

0 Likes
Highlighted
Astronaut
1890 0 373

When assigning variable names, avoid using periods and hyphens.  Underscores are good substitutes.

{% for link in linklists.video-links.links %}
      
{{ link.title }}  {{ link.url }}
{% assign link_title  =  link.url  %}




{% endfor %}

 

0 Likes