Skip to main content
7 of 14
added 256 characters in body
Matt
  • 51
  • 6

multiple sliders one page - Stash parse order and Playa

Concept is to stash store a entry_ids of playa entries to pass to jquery-nivoslider call, so that both the slider div and the call will not have identical slider ID's resulting with conflict.

As of now, when using process="end" tag, it doesn't appear to have playa parsing the vars in the proper order.

{preload_replace:my_channel="rehab"} {preload_replace:my_playa_channel="rehab_updates"} {preload_replace:my_single_entry_template="view"}

{exp:stash:parse process="end"} {exp:channel:entries channel="{my_channel}"} {exp:playa:parents channel="{my_playa_channel}" status="open" entry_id="{stash:update_ids}"} {/exp:playa:parents} {/exp:channel:entries} {/exp:stash:parse}

{exp:channel:entries channel="{my_channel}" url_title="{segment_3}" limit="1" require_entry="yes"} {exp:stash:set name="update_ids" parse_tags="yes" trim="yes"} 0{exp:playa:parents channel="{my_playa_channel}" status="open" limit="10"}|{entry_id}{/exp:playa:parents} {/exp:stash:set} {/exp:channel:entries}

{exp:channel:entries channel="{my_channel}" url_title="{segment_3}" limit="1" dynamic="on"} {exp:stash:parse process="end" parse_depth="2"} {exp:playa:parents channel="{my_playa_channel}" status="open" limit="10" entry_id="{stash:update_ids}"} {/exp:stash:parse} {/exp:playa:parents}

{/exp:channel:entries}

Matt
  • 51
  • 6