I try to store member_id/author_id for session during visit of other users. Goal: show content of a certain user without showing the id in a URL.
My testing template has the author_id in segment_2. I can get this segment_2 with stash, this outputs in the template allright. Like this:
{exp:stash:set name="sn_author" scope="user" save="yes" type="snippet"}{segment_2}{/exp:stash:set}
{if sn_author == segment_2}success{/if}
But I cannot make this work inside a regular EE entrees tag.
The EE tag outputs correct when hardcoding the desired author_id. But when I use stash get, it does not work. I understand this is a parsing order. I tried process="end" no luck.
My EE entrees tag
{exp:channel:entries channel="member_profiles" dynamic="off" author_id="{exp:stash:sn_author process="end"}"}{member_first_name} {member_last_name} {/exp:channel:entries}
I am rather new to stash, cannot get around this, and do hope for an answer here, thank you very much.