Questions tagged [stash]

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

Filter by
Sorted by
Tagged with
10
votes
2answers
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> &...
6
votes
2answers
905 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 ...
6
votes
1answer
332 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....
3
votes
1answer
277 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:...
17
votes
3answers
385 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 ...
7
votes
3answers
632 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 ...
2
votes
3answers
409 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 ...
0
votes
2answers
198 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 ...
5
votes
3answers
173 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 ...
3
votes
2answers
435 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 ...
3
votes
1answer
166 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:...
7
votes
1answer
551 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 ...
5
votes
3answers
953 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? ...
3
votes
1answer
159 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 ...
3
votes
2answers
83 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 ...
3
votes
2answers
106 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"...
1
vote
1answer
98 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 ...
1
vote
1answer
863 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="...
1
vote
2answers
614 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 -...
1
vote
3answers
833 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|...
1
vote
3answers
55 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 ...
1
vote
1answer
67 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:...
1
vote
0answers
152 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 ...
1
vote
1answer
208 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
0answers
22 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|...
0
votes
1answer
133 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 ...
0
votes
2answers
66 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 ...
0
votes
0answers
58 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
1answer
127 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 ...
0
votes
1answer
197 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. ...
0
votes
2answers
274 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 ...