I'm trying to use Stash to replace {image_n} tags in the content fields, like also mentioned on:
using Stash to replace Matrix image slugs
http://devot-ee.com/add-ons/support/stash/viewthread/3013
I get that working just fine but when I try this on a page with multiple entries, the images simply show the same matrix images (of the first entry) and not different images per entry. I'm assuming this is due to the images being saved as snippets, so I figured instead of that, adding a context to the stashed data would do the trick, but I just can't get it to work. Can anyone help me out? Here's what I have now:
{exp:stash:set_list name="bloglist" parse_tags="yes" parse_depth="2"}
{exp:channel:entries channel="blog" limit="5"}
{stash:item_title}{title}{/stash:item_title}
{stash:item_entry_id}{entry_id}{/stash:item_entry_id}{!-- For potential use as context --}
{blog_images}
{exp:stash:set name="image_{row_count}" type="snippet"}
<img src="{image_file:url}">
{/exp:stash:set}
{/blog_images}
{stash:item_body}{blog_body}{/stash:item_body}
{/exp:channel:entries}
{/exp:stash:set_list}
{exp:stash:get_list name="bloglist" parse_vars="yes"}
<h1>{item_title}</h1>
{item_body}
{/exp:stash:get_list}