croxton/Stash — Issue #2: Store entry ids?
Author: laurend
Created: 2011-10-13 15:51:15+00:00
State: open

Hi,

Is it possible to use Stash for storing/getting a dynamically-generated entry id?

a simplified example of what I'm trying to do looks like this:

-----------------------

{exp:channel:entries channel="my_channel" search:my_field="something" limit="1" orderby="random"}

{exp:stash:set_value name="the_id" type="snippet" value="{entry_id}" parse="inward"}

Some code ...

{/exp:channel:entries}

More code ... then:

{exp:channel:entries channel="my_channel" entry_id="{the_id}"}

Show this ...

{/exp:channel:entries}

Then:

{exp:channel:entries channel="my_channel" entry_id="not {the_id}" orderby="random" limit="5"}

Show the others ...

{/exp:channel:entries}

-------------------------------------------
Any insight would be helpful!

Thanks,

Lauren