Hello,
If you are fetching different articles by using some blocks, then you can use following code
Code: --------------------------
{% assign article = articles[block.settings.article] %}
{% assign splittedUrl = article.url | split:"/" %}
{% assign blohHandle = splittedUrl[2] %}
{% assign blog = blogs[blohHandle] %}
If you are fetching different articles by using some blocks, then you can use following code
Code: --------------------------
{% assign article = articles[block.settings.article] %}
{% assign splittedUrl = article.url | split:"/" %}
{% assign blohHandle = splittedUrl[2] %}
{% assign blog = blogs[blohHandle] %}
Thanks
No comments:
Post a Comment