Questions tagged [stash]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
67 views

Mustash Cache breaking rules

When I try saving Cache breaking rules with Mustash, I get this error: Error Number: 1366 Incorrect integer value: 'NULL' for column 'group_id' at row 1 INSERT INTO `exp_stash_rules` (`plugin`, `...
0
votes
0answers
63 views

How to use Stash to avoid embedded templates

I'm excited about being able to use Stash to avoid having to use series of embedded templates, but can't figure out how to make it work. The code below generates the variable 'course' and uses it in ...
0
votes
1answer
103 views

Low Variables parsing grid

I'm using Low Variables. This specific variable is of the type 'Grid'. What I'm having in my template is this: <select name="country" id="country" class="form-control"> {exp:low_variables:...
1
vote
1answer
351 views

check if a segment is a number

I am trying to figure out a way to set to variable values depending on if a specific segment is a number or not. First how to I check if the segment 2 is a number or not? I want to apply this type ...
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
255 views

Set Stash variable in Channel entry loop, then use in email contact form? Parse order issues?

The following is part of an embedded template, which is passed {embed:advertisers_entry_id} that contains a string like 34|68|124|: {!-- Set defaults --} {exp:stash:recipients}{/exp:stash:recipients} ...
1
vote
1answer
47 views

Adding quotes around a parameter causes error?

I have the following: {exp:email:contact_form charset="utf-8" form_class="customer-email-form" recipients={exp:stash:get name='recipients'} } Notice that the recipients parameter's value ...
0
votes
2answers
153 views

Stash & Low Search - Group results by releationship

I'm trying to group the results returned from Low Search using Stash. I started by creating a stash list of all the groups, I then tried to create a nested list containing the products for that group. ...
1
vote
1answer
82 views

How to save the current url across page reload with Stash?

I'm trying the following code to save the latest visited url across a page reload: TEMPLATE A: {exp:stash:set name="latest_url" scope="site" save="yes" refresh="60"} {exp:current_url:full_url} {/...
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 ...
0
votes
1answer
328 views

Setting Stash variables inside Channel entry loop - parse order problems?

I'm passing an embed variable to an email form. The email form can either send an email to one member or multiple members. If the embed variable is just one entry id, then it's an email for one member....
0
votes
1answer
73 views

Change in output for playa:parents inside Stash when going from PHP 5.3.x – 5.4.x

This template works fine on PHP 5.3.x: {exp:stash:set parse_tags="yes" conditionals="yes"} {stash:st_content} {exp:channel:entries channel="people" url_title="{segment_3}" dynamic="no"...
1
vote
0answers
55 views

Using session_variables and conditionals with Matrix!

The Situation: I'm building a new feature for a wildlife-based charity. They want to spice up their donation form to include images of relevant animals based on how users have been browsing the site. ...
0
votes
1answer
76 views

Stash - tag pairs to set multiple variables at once - no results / no_results

This one kept me busy for a while and I although could find similar questions none of the solutions worked. Using template partials, gather the page content then send though (via embed) to a master ...
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 ...
0
votes
1answer
49 views

Garbled stash:nocache output when in stash:set_list in a nested embed

I'm putting together a sort of ViewModel-ish setup and getting strange output from {stash:nocache} Here's the setup. First, the EE template: {stash:embed context="@URI" file_name="viewmodels:...
0
votes
1answer
167 views

Using stash to set a variable for use across different templates

If I understand correctly then I should be able to use Stash to set a variable on Template A and then retrieve it on Template B. Template A contains {exp:stash:set name="testvar" scope="site"}foo{/...
2
votes
2answers
128 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:...
0
votes
1answer
64 views

Stash - needs page refresh to reset

I am new to the stash plugin so i am probably doing something wrong. At the top of a layout template, i have a channel entry loop that sets a stash variable like so: {exp:stash:set save="yes"...
0
votes
0answers
79 views

Stash filter entries by categories using match / against

First of all I will collect all the website categories in a particular category group. Then, for each category group I will generate my Markup that will be fed to Jquery to generate navigational tabs. ...
4
votes
2answers
91 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 ...
0
votes
1answer
119 views

How to capture EE embed output with Stash variable?

I have an EE embed that processes PHP code. I would like to capture that output with a Stash variable. I'm using a model/view approach, ie. have one template to retrieve the data and another to ...
-1
votes
1answer
54 views

Using Stash image alone not displaying

I'm new to the EE using stash i'm getting the output for other fields only image is not displaying. I'm using the stash version 2.6.1. If any one help me to solve the issue it would be grateful!!! {...
1
vote
2answers
58 views

Call to Stash embed being evaluated inside a Switchee statement when it shouldn't be

I have a problem with a Stash embedded template being called when it's inside a switch statement (or a conditional, already tried that too) which should evaluate as false. For example: {exp:switchee ...
0
votes
1answer
31 views

Stash, Parsingorder (?) and conditionals if content exists

I am sorry to ask this, but I am stuck here. I must change (on two places) a css class if a channel entree exists. If yes, the class must be unit-70, if no, unit-90. This code below does not work, I ...
4
votes
1answer
225 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 ...
0
votes
1answer
62 views

Templates with playa returning blank pages

I have a fully-functioning EE site (which I didn't build) but I am migrating over to a new server, and everything is operating as it should with the exception of pages that have playa code in it. If ...
0
votes
1answer
53 views

Stash Playa field from Matrix (context)

I'm trying to Stash and output an entry from a channel. Since I also need a dynamic=no menu on the left, I've been able to use a match of the {segment_2} against the url-title to dinamically display ...
0
votes
2answers
34 views

Stash is rewriting my variables when outputting multiple entries - how to make them distinct?

I'm using Stash for image replacement in my main column. {images} is a Matrix field. In my body field, {image-1}, {image-2}, etc. are the image placeholders. My code looks like this ({images} is a ...
0
votes
1answer
77 views

Stash not overwriting variable - variable stays same after 2nd setting

I'm having a bit of trouble with getting Stash to change a variable. I'm using it to output a heading in search results when it's not the same as the last result. Here is my code: {!-- Set the ...
0
votes
1answer
65 views

exp_stash rows aren't being expired / deleted

I'm using stash fairly heavily in an addon and creating user scoped stash variables. All worked great but I'm finding that my exp_stash db table is growing and growing without any rows ever expiring. ...
0
votes
1answer
23 views

Template group parsing index file even when not called

I'm experiencing some strange behavior with one of my template groups. There are two templates in the group, index and award. When loading the award template I am seeing content from the index file ...
0
votes
1answer
65 views

ExpressionEngine Stash Troubles Using Logic Operators

I've been struggling with stash on this project for some reason. I have a business that has multiple locations available. The locations page is filtered by location to only show what the user selects. ...
0
votes
2answers
35 views

Upgrading Stash from 2.3.6 to 2.5.9 breaks a template

I am running ExpressionEngine 2.7.2 with Stash 2.3.6. I tried updating Stash to 2.5.9 but found one of my templates using Stash now does not obtain the stashed variables. Here is the salient portion ...
0
votes
1answer
108 views

Stash and List Pagination - custom links?

In considering using a Stash list in order to get custom ordering of Previous/Next entries, I see that the docs provide only limited tags to use in the pagination function: {previous_page} ...
0
votes
1answer
98 views

Stash regex query

I'm using Stash to set and retrieve a list based on channel entries. I want to filter the list by a 'column' of data defined by a pipe-delimited set of values. I'm having trouble though getting the ...
0
votes
1answer
51 views

Stash forgetting value

I have a plugin which is setting the value of a stash variable based on segment URIs. on my redir/index.html template, I have {exp:hippo_functions:redir} and the contents of my function (stripped) is:...
0
votes
2answers
151 views

Stash - 2 lists, match/against with a tag not outputting correctly

Somehow, I'm not able to get this to work. I am populating 2 lists at the top of a template. {exp:stash:set_list name="favorites" replace="yes" parse_tags="yes"} {exp:favorites:entries} {stash:...
1
vote
1answer
77 views

Content Elements Ordering

I can’t seem to figure out how to do this correctly. I’m using Content Elements as a field and stashing those values as you would typically do in a Stash list. However, when I call that list the ...
0
votes
1answer
57 views

Playa not rendering within a Stash List

The below code works just fine on it’s own, however as soon as I drop it into a stash list and call it later in my template no results are shown. Is this a parse issue? {exp:channel:entries channel="...
0
votes
1answer
100 views

Stash and ce_cache, conditional caching?

I'm trying to cache some templates using ce_cache and Stash. I can't get this to work, at the moment it's outputting nothing. My simplified 'model' code is something along the lines of: {stash:embed:...
0
votes
1answer
38 views

Multiple Stash Sppend Lists

I have created a module which using curl retrieves and parses data from an external source. I have adapted the code from channel:entries so it outputs the correct values. The method handles the tags ...
0
votes
1answer
651 views

Using Stash variable inside of channel entries loop

So, I have a scenario where I'm setting a Stash variable based on a query string being passed. I'm using Mo' Variables to get the $_GET values. // Query string: /?c1=74&c2=81 {exp:ifelse parse="...
1
vote
2answers
73 views

advantage of using Stash with LVs or Low Variables by itself

Can someone comment on if there is an advantage over Option 1 vs Option 2 or vice-versa. Option 1 - Stash with LVs {exp:stash:set name="product_description"} {if segment_3 == 'content-management'}{...
0
votes
1answer
116 views

Stash & Switchee parse order problems

I have the following blocks of code that I can't seem to to work correctly. The list sets and populates perfectly, but the switchee statement doesn't work. I konw that it has do do with parse order ...
0
votes
1answer
80 views

Setting Stash name as {entry_id}

Having some issues here, not sure if it's even possible. Template one lists one entry. I want to set a variable and make its name the entry_id of that entry, to be used to validate on the next ...
1
vote
1answer
72 views

ExpressionEngine Stash Replacing rather than appending

I'd massively appreciate a bit of help with the Stash ExpressionEngine plugin... I think it must be quite simple but feel like I've tried everything... The {expertise} tag is an ExpressionEngine grid ...
0
votes
2answers
163 views

Using Stash within Stash to pass an entry_id for Safecracker

I'm using Stash in a few ways. First, as a layout template (.layout-account.html). Second, to get variables for testing. But I'm struggling with the final part. I have two channels - Users (via Zoo ...
0
votes
1answer
67 views

Stash cacheing a large nav

I have a site with a large megamenu which is made up of the following types of code: Setting category lists {exp:stash:set_list name="product_categories" parse_tags="yes" save="yes" ...
0
votes
2answers
100 views

Stash, Conditionals, and a Custom Field

New to Stash and here is what I'm trying to accomplish. But so far, no such luck. I have two templates - manage-social-media.html and .layout-account.html Manage-social-media.html Here I am ...

1 2
3
4 5
9