Closed FlyersPh9 closed 6 years ago
@FlyersPh9 You are missing the second bracket after print.yammer on the list item. Do you think that is the issue?
Also, there should be a liquid loop that should be around the fine print list items as well. That may be the reason if the typo isn't the error.
@frostyweather My mistake, the second bracket is actually there in my working example. I'll correct it in the original post.
@FlyersPh9 Alrighty. Basically you need a liquid loop around the list. Something like this (you'll need to add the link within the loop for it to work to):
{% for print in page.fine-print %}
<ul>
<li>Yammer: {{ print.yammer }}</li>
</ul>
<a href="{{ print.yammer }}" class="c-btn">Discuss this on Yammer</a>
{% endfor %}
This should work.
Thank you @frostyweather! You were right, I did not have a liquid loop around the button. It's been a bit rocky as I try to learn how to use StyleGuideGuide but I am slowly learning over time. Thanks again!
@FlyersPh9 Glad I could help! Take a look at this site if you need some help with liquid stuff. https://shopify.github.io/liquid/tags/iteration/
I dealt with quite a bit of confusion while first learning liquid as well, but once you understand it, you get it. Best of luck with all of this!
I am editing button.md and component-detail.html. In the button.md file I am creating a new variable called yammer.
In the component-detail.html file I am trying to use the yammer variable in an anchor tag like this:
When the page renders, Yammer's value does appear in the unordered list, but does not appear within the anchor tag. Any ideas how to get this to work?