Questions tagged [stash]

Questions about using the Stash add-on from Mark Croxton.

Filter by
Sorted by
Tagged with
2 votes
4 answers
162 views

Super Search and Primary Category - conditonal if searched categories includes entry's primary category

I have a very complex situation in which I need to pull out one entry from a Super Search results loop and re-inject it in a different location on the page. I'm planning on using NSM Transplant for ...
1 vote
3 answers
621 views

Conditional Not Working

I'm having some problems with my view model template... I'm trying to compare the value of url_title, but regardless of the value of it the last conditional passes and sets the stash variable... This ...
1 vote
1 answer
606 views

How to deal with empty stash lists?

I have an empty stash list, as expected. I need to output some alternative content if the list is empty. I've tried using conditionals and {count} but to no prevail. Any ideas how I can do this. I ...
1 vote
1 answer
107 views

Global Cache Fragment with Stash

So we have our navigation cached within stash to help rendering time. And as you can imagine, the navigation is present on every page. The problem is, for some reason this is creating a cache for ...
0 votes
1 answer
440 views

Problem with Stash nested lists

I'm working on an XML template for a site and need to output a series of listings where URLs look like: /store/#type#/#brand#/#collection#/ My entries are set up so that there's an entry for each ...
1 vote
0 answers
31 views

CE Image tags in stash:set stop parsing when I add a stash:get

I had the following code which worked: {exp:stash:get_list name="project:{segment_3}" scope="site"} {exp:stash:set name="main_content"} <div class="rel"> <ul class="rslides"> {exp:...
1 vote
2 answers
160 views

What's the difference between {exp:stash:get name="foo"}, {exp:stash:foo} and {stash:foo}?

Can someone explain to me the difference between {exp:stash:get name="foo"}, {exp:stash:foo} and {stash:foo}? I'm relatively new to ExpressionEngine, and after discovering Stash, I'm amazed at how ...
1 vote
1 answer
218 views

Stash category ID and entries

I have tried to use Cat2 addon to retrieve category ID based on a category group. Later I want to use stashed category ID to retrieve entries form a channel based on a selected category. Code looks ...
0 votes
1 answer
257 views

Stash get_list and prefix: variables not rendering

Using EE 273 and stash 252. As soon as I add a prefix parameter to a get_list, stash variables inside the list are not rendering. Set_list part {!-- Get last 3 news --} {exp:stash:set_list name="...
1 vote
1 answer
55 views

Stash and Expresso Store modifiers

I'm trying to use stash withing Expresso Store modifiers {exp:stash:set_list name="price_list"} {exp:store:product entry_id="{entry_id}" disable_form="yes" disable_javascript="yes"} {modifiers} ...
1 vote
1 answer
198 views

Problem importing database - import hangs on exp_stash table

Here's a weird one. I need to set up a dev server, so I'm importing a DB from and existing production EE install. The import proceeds fine until it gets to the exp_stash table. Then I get MySQL error ...
0 votes
1 answer
58 views

Playa in a Low Variable and Stash problems after Update to latest stable Stash version

I had this scenario working before: A Stash "standard.hmtl" template with {exp:stash:get name="maincontent"} A single-view template for products that looks like this: {!-- set the page layout --} {...
0 votes
1 answer
156 views

How to cache Stash Data when EE native template caching doesn't work

I needed custom event grouping by category within a Solspace Calendar table. The only way I could find to do this was the following: Use {exp:stash:append_list} within {exp:calendar:cal} to store the ...
0 votes
1 answer
170 views

setting stash snippet as author_id does not parse

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 ...
1 vote
1 answer
258 views

GWCode Categories and Stash set/get_list

I'm working on a template that outputs large tables of stockists. At the moment they're quite slow so I've reworked it a bit to use Stash set & get_list but they're still quite slow. For ...
1 vote
1 answer
42 views

Stash : Can I pass a stash_list into a stash:embed file?

I'm trying to pass in a stash list into my embed file. It does seem to pass in the values but outputting the result does not seem to work. Master Template: {exp:stash:set_list name="hours_list" ...
1 vote
2 answers
301 views

Nested lists with Stash, Playa, and Channel Videos

I have a channel of Events, which has a videos field. Videos is a playa field which relates to a Videos channel. The Videos channel has a field which uses Channel Videos to display the video. I'm ...
0 votes
0 answers
64 views

Solspace tag entries pagination links

I'm using tag entries like in Docs {exp:tag:entries inclusive="yes" orderby="entry_date" sort="asc" limit="10" paginate="bottom" ...
0 votes
1 answer
50 views

how to define the stash embedded template?

I would like to use the Stash embed functions, but I don't know how to define the template path. In the Stash docs: {!-- Stash template file at /path/to/stash_templates/test.html --} {stash:embed ...
1 vote
2 answers
173 views

Stash: set and replace inside exp:search_fields and exp:channel:entries not working

I'm trying to set (and change) a Stash var within a search loop. I tried process='end', parse='inward' and similar, but i can't set/update/replace the var inside the loop and get the proper value back:...
1 vote
1 answer
596 views

Adding up (SUM) the values of a field in an entries loop

I have an ee entries loop returning a bunch of entries. Each entry has a custom field holding a numerical value. I would like to add together the values of that field at the end and output the total. ...
1 vote
3 answers
445 views

Add/Edit Channel Form

I've come across this problems enough times now that I'm curious if anyone has sort of a best practice for it that might be helpful. I have a channel form page that needs to know if the user has ...
1 vote
2 answers
95 views

Setting a Stash variable in the first Matrix row

I'm sure this has something to do with the parse order or it might be a bug. I'm trying to set a Stash variable in the first matrix row. After looking at the template debugging, Stash sets the ...
0 votes
1 answer
120 views

Listing related entries based on category

I want to list out related entries when viewing an entry, regardless of channel but according to the category of the entry. On the page where the entry is output, I output the entry in a traditional {...
1 vote
1 answer
125 views

Stash lists with a dynamic list name in a relationship loop

I have got a bunch of entries in this relationship and i want to spit them out and group them by day. So, i thought i could use Stash to capture this, group them into a list for each day and the below ...
2 votes
1 answer
225 views

Stash snippets vs "native" snippets

I consistently use a few Snippets for things like HTML HEAD boilerplate code, and I've long used the Snippet Sync add-on to give me easy file access to the snippet code. Now that I'm consistently ...
1 vote
1 answer
107 views

Comparing Stash variable to segment fails

I asked this also on Devotee - apologies for posting in both places but I guess here is better. I’m setting several variables in the Channel Entries loop like so: {exp:stash:set name="var1" ...
1 vote
1 answer
68 views

Using Stash lists with Channel Videos, getting double result rows

I'm using EE 2.7.3, Channel Videos 3.1.5, and Stash 2.4.9. I am trying to stash all the data for my Page channel, which has a Channel Videos field. So at the top of my template, I have this code ([...
2 votes
1 answer
234 views

stash:cache and no_results inside channel:entries does not redirect

This seems to be linked to the issue discussed on this question however it's using cache tags instead of parse and I'm redirecting to a 404. My code is as follows: {exp:stash:cache name="page"} {...
1 vote
1 answer
80 views

Help with Matrix->Playa->Matrix while using Stash for {image_1} shortcode replacements

No, it's actually not as convoluted as it sounds... ;) Got two channels: News, and News Commentary. News entries are published multiple times per day; News Commentary is published once a week and ...
1 vote
1 answer
56 views

Low seg2cat & Stash: Error message when I use it in a conditional

I think I may be getting a parse order problem when I try and use Low's seg2cat variable in a conditional with Stash. Here's my code: {exp:stash:set name="pg_content_left"} {if ...
1 vote
0 answers
24 views

Does Stash play nice with Search Fields plugin?

I have Search Fields set up to do some non-standard filtering of a channel entry and all works fine. I've come across a separate issue where it would be good to derive a Stash list from these Search ...
1 vote
1 answer
44 views

Stash List - Showing too many results

I have a news page that should either display 10 results regardless of category or 10 results based on the category information in the URL. My code is checking to see if there is a category url in ...
2 votes
1 answer
198 views

Stash - retrieving Matrix field data

I'm new to Stash and I'm trying to get the data from a Matrix field. The field has two columns, image and video, and there can be more than one matrix row. I've used the example from the Stash ...
1 vote
1 answer
268 views

Possible to filter Stash List by two custom fields?

I'm retrieving a list and ordering it by a custom field but need to exclude some fields and include others. Essentially it is a case of the EE 'search by custom field' param but using OR not AND.......
1 vote
2 answers
260 views

How parse channel entry fields content

Is it possible parse ExpressionEngine tags inside the content of another tag? {exp:channel:entries channel="my_channel"} {parseit {my_field}} {/exp:channel:entries} my_field should contain ...
2 votes
3 answers
789 views

Conditionally set a Stash value

I'm using Stash to set a value like so; {exp:stash:set_value name="head_title" value="{title}"} However, I have now added a new channel field {news_meta_title} and would like to pass this as the ...
0 votes
1 answer
91 views

channel:entries and segment with Low Variables

This is my Low Variable var="lv_article": {exp:channel:entries limit="1" channel="{segment_1}"} <h1 class="title">{title}</h1> {/exp:channel:entries} When it's ...
0 votes
1 answer
82 views

How do I resolve this scope issue with Stash?

I'm just playing around with implementing Stash on a site, following the Template Partials Using Stash article, but now I seem to be having a scope/execution order issue. Layout <html> <...
1 vote
2 answers
116 views

Stash Destroys variable regardless of conditional

I have the following at the top of one of my pages: {if "{fn_zone}"!=""} {redirect="/store"} {if:else} {exp:stash:destroy name="delivery_day"} .... More stuff .... {/if} However, what I'm ...
0 votes
1 answer
144 views

Access a Relationship field inside a Playa field

I have a Playa field that contains related People to display on a page. In each Person entry there is a standard EE Relationship field (pre EE2.6) to assign the Office Location. What I need to do is ...
1 vote
1 answer
44 views

Gateway Fields are not being displayed

I am trying to use a template that I have custom Gateway fields in and I am using the following code {exp:cartthrob:checkout_form return=""} {gateway_fields} <button class="checkout">Check Out&...
1 vote
2 answers
242 views

Using Matrix with Playa Fields and Stash set_list

I'm using {exp:stash:set_list} along with a few Matrix fields, but when I use {exp:stash:get_list} in my view template to retrieve the values nothing is returned. Here's barebones example of what I'm ...
1 vote
2 answers
386 views

Switchee segment check in embedded template not working

I'm new to Stash and Switchee and this is probably a parse order issue, but I am not quite sure how. Maybe someone that understands this and Switchee a bit more is able and wouldn't mind explaining ...
0 votes
1 answer
113 views

stash {exp:stash:set} and {exp:stash:set_list}

{exp:channel:entries channel="about"} {exp:stash:set name="page_meta_description"}{about_meta_description}{/exp:stash:set} {exp:stash:set name="page_meta_keyword"}{about_meta_keyword}{/...
1 vote
2 answers
351 views

Stash Regex Match

In my stash:get_list how would I ignore case sensitivity. I know its something to do with '/i' but don't know a thing about regex. {exp:stash:get_list name="filter_list" match="#{stash:keyword}#" ...
1 vote
1 answer
501 views

Stash cacheing with embeds

It was my understanding that Stash embeds are cached by default. I'm working on an ecommerce site where all template groups have EE templates similar to: {stash:embed name="file" context="@...
0 votes
2 answers
217 views

Stash static caching not ignoring POSTs like I think it should

I am using Stash static caching (and it is AWESOME). I'm using Stash 2.4.5 and EE 2.7.2. I am also using Low Search 3.0.4. So I have the {exp:stash:static} tag on my homepage, which is great. But if ...
0 votes
1 answer
256 views

Stash static caching URL issue

I am using Stash static caching (and it is AWESOME). I'm using Stash 2.4.5, Mustash 1.0.9, and EE 2.7.2. On my Mustash 'Static cache rewrite rules' page, in the example .htaccess code, it has the ...
1 vote
1 answer
176 views

Using Stash to share data between templates

Is it possible to Stash some content in one template and then grab it from another template? Basically, I want to store a bunch of Entry IDs in one template and then i'm AJAX loading another template ...

1
3 4
5
6 7
9