Hot answers tagged

3 votes
Accepted

stash parsing sequence

If you want to understand parse order better, you could have a look at this handy cheat-sheet: originally created by Low, the copy on his site appears to have disappeared, but here is a version of it ...
JCOGS Design's user avatar
  • 3,587
3 votes

Stash and Multiple Grid Fields Not Populating

Let me show you how the parser will parse that code before Stash tries to capture it as a list. I'll assume your relationship field only allows you to select a single person: {!-- first grid field --}...
Mark Croxton's user avatar
  • 5,234
3 votes
Accepted

Stop stash embed caching file

{stash:embed name="_foobar" replace="yes"}
Mark Croxton's user avatar
  • 5,234
2 votes
Accepted

Stash Channel Entries Loop -> Replacing a part of Tag Pair field name?

Stash parses any known {stash:variable} style markers at the beginning of each pass of the tagdata it wraps (working from the top layers of tags inwards). However {stash:entry_{entry_id}_category} ...
Mark Croxton's user avatar
  • 5,234
2 votes

parse="inward" question

Tags inside parameters aren't parsed at all unless you use parse="inward". That's because once parsed a tags' parameters are removed from the template (replaced with the output of the tag). Thus tags ...
Mark Croxton's user avatar
  • 5,234
2 votes

Tracking Video Plays in Google Analytics

You could take a look at Google Tag Manager. I use it to inject GA code into our website pages and for click tracking purposes.
Robert's user avatar
  • 21
2 votes
Accepted

Stash construct works in EE2 but fails in EE3... why? how to fix?

One obvious problem there is that that you are parsing only one layer down when capturing the Stash variable. So you would actually be capturing this: {exp:channel:categories show="{construct:cat_id}"...
Mark Croxton's user avatar
  • 5,234
2 votes
Accepted

{stash:embed name="test"} vs {exp:stash:embed name="test"}

Stash embeds can be parsed at three different stages in the parse order of their parent template: process="start" - embed the template before any other variables and tags in your template are parsed. ...
Mark Croxton's user avatar
  • 5,234
2 votes
Accepted

Stash content depending on SSL / https

First thing to ask is, do you really need to? Your links could just be protocol relative: {stash:item_link}//example.com{/stash:item_link} If that's not the issue then you could create a global ...
Mark Croxton's user avatar
  • 5,234
2 votes
Accepted

How do I generate a complete list of all "search-words" for a given Low Search query?

First of all, don't worry. Your database is not corrupt, nor are you getting any database error messages. Most likely, your setup isn't producing the results you are expecting due to a combination of ...
Low's user avatar
  • 11.3k
1 vote
Accepted

PHP filtering not working consistently with stash

If anyone else is interested, I solved this by hacking the Tag module (which is very nicely written) and added an 'exclude_ids' parameter to the 'related_entries' tag, which when set, filters out the ...
greebstreebling's user avatar
1 vote

Splitting a string into a Stash list?

Haven't used BBD Stringer, but have used Low List to help with this. You can do something like: {exp:stash:set_list name="XXX" parse_tags="yes" } {exp:low_list:each items="north|east|...
Romans-8---31-39's user avatar
1 vote
Accepted

Stash List with Grid and Entry Title

Suspect it is because you are using different context settings between setting the list and getting it back again. You set the list using {entry_id} as the context. You retrieve the list using {...
JCOGS Design's user avatar
  • 3,587
1 vote
Accepted

Big doubts about Stash Bundle

In my opinion, you are confusing bundles with lists. Stash lists will provide the functionality you're looking for (which is basically to group variables into an array). Bundles are merely used as a ...
James Smith's user avatar
  • 4,885
1 vote

How to use Swtichee and/or Low Variables to optimise an if if:elseif if:else conditional statement

Frankly, ExpressionEngine code conditions to convert in switchee or law variables will not increase page speed. To enhance the performance, you should try this plugin for if condition:(EE2) URL To ...
Mufi - Amici Infotech's user avatar
1 vote
Accepted

Stash corrupting data in EE3

ExpressionEngine (all versions) will choke if you use the same tag as a single and as a pair in the same template: {exp:stash:test process="end"} {exp:stash:test}Test value{/exp:stash:test} It ...
Mark Croxton's user avatar
  • 5,234
1 vote

Cannot make stash:get to show up inside exp:channel tag

In your embed code you have pasted it looks like you have an extra pipe character in your author_id parameter author_id="{stash:get name="MedlemLetterAuthor"}|"parse="inward" makes it a little hard ...
Phil's user avatar
  • 464
1 vote

Stash variable as a parameter

Add the parameter parse="inward" to the Freeform tag and you should be good to go. It seems you can’t pass tags to the special search: parameter. Even parse="inward" doesn't work. Here you can find ...
Balloonatic's user avatar
1 vote
Accepted

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

The only thing I can think of in your case is to specify some default in the description or keywords that you know and can check against. So, if SEO Lite defaults you'll know about it and can then use ...
Bjørn Børresen's user avatar
1 vote
Accepted

Gmaps using stashed lat/long not working

You need parse="yes" trim="yes" when you set the var (to fully parse the conditionals and remove whitespace), parse="inward" on the gmaps tag (so the parameters are parsed), and add 'random' to the ...
Mark Croxton's user avatar
  • 5,234
1 vote

Playa: Complex, nested and filtered

You could use {exp:playa:coparents} to list other parent entries (trips) that share the same child (outpost). Then within that loop, list the activity associated with each trip (I'm assuming you have ...
Mark Croxton's user avatar
  • 5,234
1 vote
Accepted

Why is keeping URLs clean so messy?

I would suggest that you stop trying to handle the routing logic in the template. It makes the templates more complicated than they need to be. I highly recommend Resource Router for routing. One ...
Mark Croxton's user avatar
  • 5,234
1 vote

parse="inward" question

Here's another example that I hope will help others with similar confusion (as I was until about 15 minutes ago). I was recently trying to get the following template to work: {exp:app:voucher hash="{...
Henry's user avatar
  • 143
1 vote

Using a conditional within {exp:stash:set_list}... how?

Whilst I'm not sure why your current code doesn't work (have you tried removing parse="inward" on the Low Reorder tag?), I would approach this in a slightly different way by filtering out the current ...
James Smith's user avatar
  • 4,885
1 vote

Embed parameter value as stash value

If you must use an EE embed rather than a Stash embed, then the easiest approach would be to set a global ("snippet") variable rather than a Stash variable: {exp:stash:set name="email" type="global"}...
Mark Croxton's user avatar
  • 5,234
1 vote
Accepted

EE embed inside stash parse process end

Stash will not parse EE embeds, only it's own embeds.
Mark Croxton's user avatar
  • 5,234
1 vote
Accepted

Tricky Stash table styling task

This will get you part of the way. It should be possible to group the type column as well, using the same principle, but you'd need an index column in the set list that combined the ticket value and ...
Mark Croxton's user avatar
  • 5,234
1 vote
Accepted

Strange CE Image / Stash / Low Search problem

You're using the single tag form of {exp:ce_img}, and if you repeat an instance of a single tag in the same template EE will "cache" subsequent instances after parsing the first (replaces with a ...
Mark Croxton's user avatar
  • 5,234
1 vote

Stash get_list set_list

I believe it's outputting the same thing over and over as you've only captured the last 'quote' – you are capturing inside the {exp:channel…} tag. So every time EE returns another entry, you are ...
stuartmcd69's user avatar
  • 3,163
1 vote

Can you query a grid field to return a list of distinct fields?

I preface the answer by saying that I do not recommend using SQL to get at your entry data this way, as it's what the Channel Entries tag and field variables are designed to do for you. That said, ...
Derek Jones's user avatar
  • 2,255

Only top scored, non community-wiki answers of a minimum length are eligible