reggi / shopify

Just a place to track issues and feature requests that I have for shopify
3 stars 1 forks source link

Get Blog id From Article #17

Open reggi opened 9 years ago

reggi commented 9 years ago
{% assign article_blog = article.url | split: "/" %}
{% assign article_blog = article_blog[2] %}
{% assign blog_id = blogs[article_blog].id %}
<a href="https://holstee.myshopify.com/admin/blogs/{{ blog_id }}/articles/{{article.id}}">Admin Link</a>
stresslimit commented 8 years ago

Thanks this is good work! Still relevant. Also shows the limitations of shopify to do simple things...

Definitely should be able to do {{ article.blog.id }}, or better {{ article | admin_link }} and {{ product | admin_link }}