Skip to main content

Questions tagged [stash]

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

Filter by
Sorted by
Tagged with
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
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
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
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
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
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
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
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
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
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
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
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
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
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
2 votes
3 answers
416 views

Set Custom Field Prefix With Stash

I have multiple channels with different field groups, but several duplicate fields. For example: Channels: products_bikes products_skateboards products_trikes Fields: bikes_summary ...
kmgdev's user avatar
  • 2,724
1 vote
3 answers
62 views

Trying and failing to use stash value as channel entries category parameter

So, apologies I know this has been covered extensively BUT I've been pulling my hair out all day and still don't get why I can't get this to work. I simply want to use a stash variable set in one ...
James Taylor's user avatar
1 vote
1 answer
75 views

Outputting tag pairs such as images/files with Stash

I'm getting into Stash and I wondered what the best way of handling tag pairs such as files/images? My aim is to totally separate out the markup from the fetching of stuff from the database (exp:...
Steve Holland's user avatar
1 vote
2 answers
617 views

Stashing a structure variable and using it as a channel parameter

Here's the code i'm essentially trying to achieve {exp:stash:set="page_content"} {exp:channel:entries channel="photos" dynamaic="off" entry_id="{structure:child_ids_for:1}"} {!-- My Code -...
Dan's user avatar
  • 409
1 vote
1 answer
102 views

How populate ../stash_templates/

What do I have to do to get files into the stash_templates-folder so I can use {stash:embed:test}. I have been iterating through the new stash-docs over and over but I cant figure it out. Apart from ...
David S's user avatar
  • 143
1 vote
3 answers
851 views

Stash variable is being set but I can't retrieve it

I'm trying to create a stash variable of a pipe delimited entry_id list using the following: {exp:channel:entries channel="related_entries" limit="1" disable="categories|member_data|pagination|...
Jim Pannell's user avatar
1 vote
0 answers
155 views

Assets duplicate on front end

Weird one, front end showing duplicates of assets but only sometimes on some entries and always disappears after saving the entry. It appears to be random, that is to say with 300+ products we only ...
stuartmcd69's user avatar
  • 3,163
1 vote
1 answer
899 views

Stash embeds: struggling to parse tags

I have a chain of embeds in Stash: A "main" template that embeds {stash:embed name="foo:.index"} foo:.index has 1 line of code: {stash:embed name="common:.serp" stash:group_id="6" stash:channel_name="...
ExpressionEngineNewbie's user avatar
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 ...
JackTheKnife's user avatar
0 votes
0 answers
25 views

Paginating a random ordered list of tag:related_entries

I'd like to display a list of entries using the Tag module: {exp:stash:parse} {exp:tag:related_entries channel="my_channel" disable="category_fields|member_data|...
greebstreebling's user avatar
0 votes
1 answer
135 views

Check for channel entry seo data or use template code instead of defaults

I am using stash on a client site and was pushing over data from the entry itself for SEO meta, but want to provide the user the ability to customize it with the SEO Lite tab. Is there a way I can ...
W3bGuy's user avatar
  • 1,610
0 votes
2 answers
72 views

Fetching a dynamic stash list

I am trying to build out a list of categories that I need to include in the nav as well as other sections of a site. I had it done with embeds and {exp:category} loops, but I would rather be able to ...
W3bGuy's user avatar
  • 1,610
0 votes
1 answer
134 views

Paginate two stash lists in one

Following on from here: Output x twice then y, then x twice I have two lists. (E) is full of entries from multiple channels. (T) is a collection of tweets from another channel. On each page there ...
magicspon's user avatar
  • 420
0 votes
1 answer
206 views

Playa in a Low Variable and Stash

Ok so I am using a Stash embed / view model approach. I have a custom filed Playa with specific articles for a product. I also have a Low Variable storing a playa of related articles for a category. ...
Jeremy Daalder's user avatar
0 votes
0 answers
23 views

How to use stash to Preload replace?

I am trying to get the current entry's related entries by using stash main article full view: {exp:channel:entries channel="blog" dynamic="yes"} {exp:stash:get name="...
Zakir Hossain's user avatar
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" ...
Davor Peic's user avatar
0 votes
2 answers
287 views

How to use stash:parse and no_results

It seems many users have issues with Stash and no_results, but as far as I can tell, nobody is trying to do this scenario. Please forgive me if I missed something. I would like to redirect users to a ...
Charlie Gorichanaz's user avatar
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 ...
Gary Reckard's user avatar