I have a client that needs a slider that can either show text, or a "tweet" (using CE Tweet for getting the tweet's info). I'm using Stash, and thought this would be the best way to get there:

            {if slide_type == 'tweet'}
                {slide_tweet type='show'}
                    {stash:list_attribution}{user_name}, <a href="https://twitter.com/{user_screen_name}" target="_blank">{user_screen_name}</a>{/stash:list_attribution}
                    {stash:list_cta}<span class="ui-retweet"></span> Retweet{/stash:list_cta}

This is where I'm outputting the list (simplified slightly):

    {exp:stash:set parse_tags='yes'}
            <section class="slider">
                <ul data-orbit data-options="bullets: false; ">
                    {exp:stash:get_list name='home_slides' prefix='list'}
                        <!-- {list:count} -->
                            <div class="row">
                                <div class="large-12 columns">
                                    <h2><span class="ui-quote"><span class="ui-quote-open"></span></span>
                                        <small class="attribution">{list_attribution}</small>
                                    <p><a href="{list_link}" class="btn">{list_cta}</a></p>

Now after my actual entry gets outputted, another "slide" gets put into my template, but all the stash-variables in that list-item are empty. Any idea as to where this emtpy item might come from?


  • Steven

2 Answers 2


You're re-wrapping your Stash get_list in another Channel Entries tag pair where you're also outputting 1. limit="1". So it looks like it will probably be running the Stash list and then acting on the outer loop of the extra Channel Entries tag pair.


Ok, so apparently this is an enormous conflict between stash:set_list, switchee and parse-order. The parse order doesn't play nice with the combination of set_list and switchee, so I refactored it to plain conditionals, causing the unmatched conditional to parse but not return anything, fooling stash into thinking there's another item. Has anyone experienced this before?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.