Skip to main content

Questions tagged [stash]

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

Filter by
Sorted by
Tagged with
19 votes
6 answers
2k views

Stash vs. Embeds

I am using Stash only recently and was wondering how the performance is boosted over using embeds? I know there are a few less queries used in general, and I know you can subvert the parse order, but ...
Aaron's user avatar
  • 1,162
17 votes
3 answers
387 views

What is the best way to handle a matrix field in Stash

I have the following code in a template that I use to prepare the data for an embedded template using the Stash partials approach. It is for a single entry page that draws data from an entry that can ...
Adam Wiggall's user avatar
13 votes
3 answers
2k views

Is the stash refresh variable the only means of breaking a cached set?

I'm trying to get into some more advanced use of Stash and I'm wondering about cache breaking. With some of the dedicated cache add-ons, you can set rules around cache breaking that are not simply ...
Jean St-Amand's user avatar
10 votes
2 answers
4k views

Stash Embeds - Trying to be DRY

I'd like to know if/how Stash embeds could be used in a particular way. I'm trying to keep things DRY. Generally my templates look something like this: _wrapper.html <html> <body> &...
Jason Varga's user avatar
  • 2,688
7 votes
1 answer
640 views

Difference between assign_to_config and config (and or env_config)

I'm using EE Master Config along with Stash. I know in Master Config that all the configs have been changed from $config[''] to $env_config[''] I noticed with Stash that Mark is using this format: $...
Natetronn's user avatar
  • 2,654
7 votes
3 answers
640 views

using Stash to replace Matrix image slugs

Like most people, I was using NSM Transplant in tandem with Matrix to have {image_1} etc within a WYSIWYG field like so http://vimeo.com/18661374 I've managed to achieve the same thing using a ...
Steven Grant's user avatar
  • 2,473
7 votes
1 answer
561 views

Stash, switchee and template caching outputs a random string {6ee64145dfa4ae5926a9c326266d5954499133923}

I am using EE's next_entry tag to link to the next entry, and then using a stash/switchee combination to evaluate if we are at the last entry in the loop and if so use a channel entries loop to ...
oliverb's user avatar
  • 170
7 votes
2 answers
609 views

Template partials and caching via Stash and CE Cache

Wondering what the best method is for caching with Stash and or CE Cache when using Template Partials. Some questions come to mind: Is it best to use CE Cache in the wrapper (this seems easiest?) ...
Natetronn's user avatar
  • 2,654
6 votes
3 answers
523 views

Basic Stash Set/Get Failing

I'm trying to use Stash 2.1.0 on an ExpressionEngine 2.5.3 site but, strangely, I cannot get even the Simple Example found on Devot:ee to work, even on what is an otherwise blank template. {exp:...
Brooks Seymore's user avatar
6 votes
3 answers
380 views

Stash, DRY and redirect

I'm currently wiring together a site that uses the DRY principle and makes heavy use of @croxton Stash module. All is working as expected but if I purposefully remove part of the URL I cannot force a ...
stuartmcd69's user avatar
  • 3,163
6 votes
2 answers
921 views

Nesting channel entries in Stash

I am having so much trouble wrapping my head around Stash and the parse order. I'm trying to clean up my code and work with the DRY principle. I have my layout and view working and pulling in my main ...
Allan Kukral's user avatar
6 votes
3 answers
625 views

Displaying list of Calendar events from a Playa field

I am needing to display a list of Calendar events that are selected from a Playa field. Of course, I need it to not display events that has passed (by event date) and if the events in the Playa custom ...
Tad Ward's user avatar
  • 401
6 votes
1 answer
341 views

Problem with injecting stash pipe separated entry_ids into channel entries loop when no results

I've came across a problem today where I wanted to 'inject' a stash pipe separated list of entry_ids into the entry_id parameter of a channel entries loop. The problem wasn't to do with stash as such....
Jim Pannell's user avatar
6 votes
1 answer
487 views

Should we use Stash caching along side CE Cache?

I'm wondering what the best option is for better site performance in regards to caching with Stash and CE Cache. A few questions come to mind: Should we be running them side by side? Any advantages ...
Natetronn's user avatar
  • 2,654
5 votes
3 answers
960 views

Nesting Playa tags several levels deep?

Does anybody know of a solution to nested playa tags? Currently I believe that the only way to retrieve playa entires from within another playa tag pair is to use an embed, is this still the case? ...
since1976's user avatar
  • 703
5 votes
1 answer
654 views

Using stash, what's the most efficient way of dealing with long paginated lists

I have a website with more or less a thousand news items in a channel and was wondering what was the best way to handle this with stash if I want to separate the logic from the HTML code as much as ...
Jérôme Coupé's user avatar
5 votes
3 answers
177 views

a less expensive way of grouping entries by category

I'm trying to figure out if there's a more performant way of getting entries grouped by category. As you can see, I'm using NSM Categories module. Right now, this costing me 263 queries and 5 seconds ...
Steven Grant's user avatar
  • 2,473
5 votes
1 answer
189 views

Using Stash to Pull Matrix Data from a Related Entry?

I am trying to expand some code suppled by Mark Croxton in another thread to create a list of Matrix results from a related entry but without success. This is with Stash 2.3.5 on ExpressionEngine 2.5....
Brooks Seymore's user avatar
4 votes
2 answers
173 views

Load stash partials with custom extension

I'm trying to parse markdown files stored on the server, and display them inside EE templates in a nice automatic fashion. My first idea was to read the files using Stash, then parse them using ...
Adrian Macneil's user avatar
4 votes
1 answer
235 views

Using stash to render custom field value rather than string literal

Use case The front page of a site has a region that should display the most recent item of featured content. Since this content can come from various channels, it needs to display custom channel ...
Jack Frost's user avatar
4 votes
1 answer
550 views

Best practices for using Stash partials with one layout but slightly different content output

I am curious to know if there are any "best practices" for using Stash to deal with "pages" that pull extra/additional channel entries that are pulled into the same wrapper/layout. More specially, do ...
Paulo Elias's user avatar
  • 1,337
4 votes
4 answers
862 views

Stash only outputting 1 of each item rather than 15 as set by channel entries limit - help

EE 2.5.5 Stash 2.1.0 I'm new to stash and am in the middle of integrating EE into existing html code. The code I currently have is as follows: {exp:stash:set parse_tags="yes"} {stash:content} ...
CreateSean's user avatar
  • 4,747
4 votes
1 answer
415 views

Embeds in stash don't work when using process="end"

A stripped down example: {exp:stash:get_list name="sidebar" process="end"} {embed="templates/sidebar-events" limit="3"} {/exp:stash:get_list} The embed tag doesn't get parsed at all, it just ...
Rob Sanchez's user avatar
  • 4,002
4 votes
2 answers
141 views

Using Stash Embeds for common elements such as call to actions

It seems to me that using Stash Embeds with variables could be a really powerful way to keep things really dry. I was wondering if anybody uses them to create consistent elements throughout their ...
Mutual's user avatar
  • 1,449
4 votes
1 answer
483 views

Stash within a stash embed to jump two loop results to two different spots in the markup

I'm having a bit of a stash dilemma brought about by my need to have modal window content inserted at the end of the parent HTML document. Here's the scenario: I have a "gallery" index template that ...
Jean St-Amand's user avatar
4 votes
2 answers
106 views

Showing parents of parents of parents, using Playa to build a pedigree chart

I am afraid that this is rocketscience for me, I do not understand the principle. I must show related entrees, and their related entrees, and their etcetera. In a grid, like a pedigree chart Let me ...
Hansl's user avatar
  • 376
3 votes
1 answer
308 views

Does preload_replace not work in stash:embed templates?

This is a fairly straight forward question... Does preload_replace not work in stash:embed templates? In my embed templates, I tend to set a bunch of preload replace variables for things like channel ...
Jean St-Amand's user avatar
3 votes
3 answers
1k views

How do I use Stash Get in exp:channel:entries?

I've got this code on a single entry template - it grabs the entry_id of the entry each time the template is loaded. {exp:stash:set scope="user" save="yes" name="recently-viewed" replace="yes" ...
user1070143's user avatar
3 votes
5 answers
604 views

Strange Stash & redirect issue

I'm having an odd issue with Stash and a 404 redirect. When an entry isn't found the "layout" template is getting rendered twice around the main Stash content. Anyone seen this before? I can kinda see ...
Matt Fordham's user avatar
3 votes
3 answers
515 views

Why are PHP and Stash variables not set as expected within EE conditionals?

I boiled my problem down to this template code on a template with "Allow PHP" set to "YES" and "PHP Parsing Stage" set to "Output": {if 1 == 1} First block <?php echo '1 == 1 is true'; ?> ...
Charlie Gorichanaz's user avatar
3 votes
2 answers
86 views

Output x twice then y, then x twice

Excuse the title, couldn't really summarise the issue succinctly... This is what I need to do... I have a load of entries from various channels (E). And a series of tweets (T) (which are stored in ...
magicspon's user avatar
  • 420
3 votes
1 answer
203 views

Use backspace parameter on Stash nested get_list

I'm using Stash to capture a list of articles. I'm trying to keep my viewModel separate from my view markup. For each article, I'm capturing a nested list of categories. In the view, I want to ...
jthomas's user avatar
  • 271
3 votes
3 answers
415 views

Dealing with Conditionals in Stash

So I have the following code snippet which is working fine: {exp:stash:set name="market_ids" parse_tags="yes"} {exp:query sql="select GROUP_CONCAT(entry_id SEPARATOR '|') as market_ids from ...
madebyhippo's user avatar
  • 1,986
3 votes
2 answers
107 views

Stash & EE - compare 2 lists?

Can’t seem to find out how this is possible, but is there a way to compare and see differences between 2 stash set_list arrays? For instance: {exp:stash:set_list name="location_list" parse_tags="yes"...
jpea's user avatar
  • 234
3 votes
1 answer
164 views

Stash saving on :get and :set performance benefits?

I'm still trying to fully wrap my brain around Stash's cacheing system. From the docs it seems that both :set and :get have the parameters save, scope, replace, and refresh. Is there a benefit to ...
Kara Todd's user avatar
  • 347
3 votes
2 answers
404 views

Stash set_list not displaying channel entry loop

I'm having trouble displaying a channel entry loop within my EE setup which uses the Stash and IfElse modules. First of all, see this screenshot of my file structure: I'm using the 'partials approach'...
remi90's user avatar
  • 133
3 votes
2 answers
161 views

{exp:stash:get_list} sorting by a numeric column

Having tested {exp:stash:get_list}, I found out that any numeric column used as a reference for sorting is evaluated as a string, not as a number. So I get something like this in order, 1 10 11 12 .....
developarvin's user avatar
  • 2,347
3 votes
1 answer
901 views

Stash list, conditionals, and {count}

I'm using Stash lists to output channel entries grouped by the value of a custom field. In this case the custom field is a relationship field, but that's not relevant because the actual entries output ...
RickL's user avatar
  • 603
3 votes
1 answer
169 views

Call exp stash multiple times through multiple exp channel calls

Can I set the entry ids to the same stash name multiple times? ie, at one exp channel call , i will call exp:stash:set name='x'. Again I want the entry ids append to the same 'x' with another exp:...
Dhanu's user avatar
  • 139
3 votes
1 answer
281 views

is the needle haystack method possible with stash?

a lot of people are comparing stash with nsm_transplant, so I was wondering if the same thing could be achieved with stash: {exp:nsm_transplant:body} {cf_textarea} {cf_images_matrix} {exp:...
outline4's user avatar
  • 791
3 votes
1 answer
459 views

Using Stash to Filter by Category

I am trying to use stash to kill multiple queries to the same channel in multiple places in the site/page. This is my stash embed file called 'featured.html': {exp:channel:entries channel="...
Aaron's user avatar
  • 1,162
3 votes
1 answer
554 views

Strange Stash Problem When Embedding

My Stash template has the following: {if "{member_images:total_rows}" == 0} {!-- No images uploaded. Display placeholder as avatar. --} <img class="img-polaroid" src="http://placehold.it/...
ExpressionEngineNewbie's user avatar
3 votes
1 answer
265 views

Handling no results redirect with Stash

This is more an A than a Q. Last week I ran into no results / redirect problem with Stash and more precisely the EE's parsing order. The solution below worked for my case. I don't take credit for it ...
Jorix's user avatar
  • 41
3 votes
2 answers
448 views

Stash preparse and CE Cache

I'm having a hard time wrapping my head around this. I'm using Stash template partials approach, with the needle/haystack technique for replacing variables in content blocks... with CE Cache over the ...
Jason Varga's user avatar
  • 2,688
3 votes
2 answers
261 views

Page title incorrect on stash paginated results

I'm using Stash and Switchee to build some paginated News entries. However, when I click through to Page 2 and beyond, my page title changes to the latest entry in the CMS. Wondered if anyone had a ...
doubleplusgood's user avatar
3 votes
1 answer
128 views

Why is a Stash embed rendering within a "if no_reverse_related_entries" tag but a normal embed does not?

I am not sure if I have been staring at the screen too long today or what but I am having a major lapse in brain power. Here's the deal: I have a list of images that I relate to specific entries I ...
Paulo Elias's user avatar
  • 1,337
2 votes
2 answers
649 views

When to use Low Variables and when to use Stash

I just started using Low Variables. I just bought Mustash to use with Stash. It is unclear to me as a newbie certain functionality and what best practices are. Which type of snippets would go in LV ...
C Calabrese's user avatar
2 votes
1 answer
312 views

Conditional with variable gives php error

I'm using channel:categories and would like to show only child categories so I added the following conditional {if {parent_id} != 0}...{/if} but get php errors as soon as I add it to the template. I ...
CreateSean's user avatar
  • 4,747
2 votes
2 answers
134 views

Resource Routing on mutiple URLs

Just jumping into Resource Router by Rob Sanchez and hit a wall already. I've forgone the category URL indicator as I believe it works without it. I'm attempting to achieve the following URL structure:...
stuartmcd69's user avatar
  • 3,163
2 votes
1 answer
166 views

Infinite Scroll and Stash

Anyone have luck in getting the Stash-style of pagination to work with Infinite Scroll? Is it possible?
Roger Erik Tinch's user avatar

1
2 3 4 5
9