As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [parse-order]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
30 votes
5 answers
2k views

What is parse order and how does it affect how my template is coded/rendered?

What exactly is parse order and how does it impact my template code and whether I should use embedded templates, global variables, snippets, low variables, stash or any other method that I may not ...
CreateSean's user avatar
  • 4,757
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
5 votes
4 answers
836 views

Why is this Low Variable in a snippet not parsing?

I have a snippet that I use on nearly every page of a site. I need to give the admins some control in the fallback source of an image in that snippet. Now I know there is a parse order issue here as ...
Dan Johnson's user avatar
  • 1,110
5 votes
3 answers
1k views

Global Variable Parsing in Add-On Module

Trying to figure out what appears to be a global variable parse issue in a module add-on template tag. Here's a sample of the tag used in the template: {exp:syn_fb_comments:show url="{current_url}"}{...
Synergema's user avatar
  • 155
5 votes
1 answer
534 views

Early Parsed Low Variable inside Channel Tags

I have a couple Low Variables I'm using similar to the traditional embed template method. This variable has query module tag to find prev/next entry, but since it's within the channel tag I'm having ...
Siebird's user avatar
  • 4,815
4 votes
3 answers
195 views

Simple conditionals parse when they shouldn't

I have a page that's set up like this: {if segment_2 == ""} // show categories {/if} {if segment_2 != ""} // show entries {/if} I'm using simple conditionals ( as opposed to if:else ) because I ...
janvl's user avatar
  • 1,289
4 votes
3 answers
466 views

setting a global var in an embedded template with PHP

I have a header template with PHP parsing on Input an the following code: <?php $this->EE->config->_global_vars['user_language'] = "nl"; ?> When I use {user_language} in my header ...
janvl's user avatar
  • 1,289
4 votes
1 answer
618 views

Using Mo' Variables in Module Tag Parameters

I'm using Mo' Variables for the early-parsed request variables. Here is the best-case scenario: {exp:calendar:cal date_range_start="{if get:start}{get:start}{if:else}today{/if}" ...
Jesse Bunch's user avatar
3 votes
1 answer
307 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
89 views

Can you document EE tags with EE? [duplicate]

I've run into this before - and have never found a 'great' solution. The crux of my problem is that I need to document some EE tags, using content in a channel entry. For example, I'd like to output ...
Michael Witwicki's user avatar
3 votes
3 answers
414 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
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
1 answer
113 views

Entry ID Returned From Plug-In Not Working in Channel Entries Tag

I've written a custom plugin which I call repeatedly (via a channel:entries tag) to store a list of entries in an array. (BTW, you have to set up a separate singleton class to do that, as the plug-in ...
NotoriousWebmaster's user avatar
3 votes
1 answer
122 views

Getting SuperSearch and GWCode to play together nicely

Using Solspace SuperSearch I want to search by category (and keyword), and have the categories list on the result page remember which checkboxes I selected. It works great when I am looping through ...
Benjamin Smith's user avatar
2 votes
2 answers
591 views

Parsing Channel Entry inside of Low Variable inside of Stash Set

Hrm, me again. Looks like I am having problems with Stash and Parse Order, after all, but on a different variable. Here's my variable: <p class="heading"><b>Our Featured Members</b>...
Christopher Kennedy's user avatar
2 votes
3 answers
177 views

Param Parse Order Question

Lets say I have this code {exp:channel:entries limit="3" channel="inventory" paginate="bottom" } ... {/exp:channel:entries} Lets say I want to make one of the parameters dynamic based on a ...
developarvin's user avatar
  • 2,347
2 votes
1 answer
70 views

How to outsmart ExpressionEngine Parse Order?

I need to get this work — how can I code this to get the parse-order I need? {exp:channel:entries channel='{exp:plugin entry_id="{segment_3}"}' … As you can see in the code above: I read out the 3rd ...
albuvee's user avatar
  • 581
2 votes
1 answer
245 views

Category Tag Pair Vars not Parsing when Stashed into a Nested List

Coming across a parsing problem when trying to get related Playa entries categories in a nested list with Stash. The setup involves Playa pulling related entries (videos) from a parent entry (feed) as ...
pseudoclass's user avatar
2 votes
1 answer
131 views

Problems with CE Image, MX Jumper and parse order (I believe)

I'm experiencing two possible issues in the code below: The if/else I have always sets standard_image_width and retina_image_width to the value in the last {if:else}, regardless of whether or not it'...
Brandon Durham's user avatar
2 votes
3 answers
415 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
2 votes
1 answer
284 views

Parse order fun! Getting a stashed Assets image resized using CE Image inside a plugin parameter

Alright, let's see if I can explain this correctly: I am using Assets to store images to S3 CE Image is being used to manipulate the images and save/serve them from S3 I use stash to try and stay DRY ...
Paulo Elias's user avatar
  • 1,337
2 votes
2 answers
153 views

Best practices: Location-aware Navigation in EE2?

Recently upgraded an older Expression Engine site from 1.x.x to 2.7.3, and looking to upgrade to 2.9.0 and optimize some of the slower code. One of the issues I'm working on is getting rid of a lot ...
sonoflee's user avatar
2 votes
1 answer
136 views

How to optimise channel entries call with custom fields and lots of matrix data

The following call is proving problematic from a page load perspective: {exp:channel:entries channel="channel" limit="1000" disable="categories|member_data|trackbacks|pagination" search:product_year="...
Dan's user avatar
  • 193
2 votes
1 answer
98 views

Accessing nested data in templates

I'm trying to use a template to parse through nested data, but some of the child data has the same variable names as the parent. In the example below I'd like to print a list of shows and then a list ...
Russell Todd's user avatar
2 votes
1 answer
90 views

strange parse order issue

I'm working on an old EE1 site at the moment. It's multi-lingual using this approach from Carl http://cwcrawley.co.uk/2010/01/multi-lingual-websites-in-expressionengine/ with English, Chinese, ...
Steven Grant's user avatar
  • 2,473
2 votes
1 answer
100 views

Parse Order and Redirect=

I know I have come across this before but the solution is escaping me. I have a template and a channel lets call it widgets. If I go to the URL /widgets/ I want it to show all the entries of channel="...
Phil's user avatar
  • 464
2 votes
2 answers
897 views

Calculating a value with Stash and MX Calculator

I'm trying to do some basic math using a Stash Get var and MX Calculator. Any recommendations? I'm sure my lack of understanding of parse order strikes again. I can get the variable using: {exp:...
Anson LeClair's user avatar
1 vote
4 answers
1k views

Using Plugin Tags Within Channel Tags

I have a plugin that allows you to set and store cookies using EE tags (so you don't have to enable PHP in your templates). Unfortunately, I can't get the tag to parse the cookie value within a ...
Ty Morton's user avatar
  • 322
1 vote
2 answers
912 views

Using conditionals to set tag parameters

I have this opening low search result tag {exp:low_search:results {if segment_2}query="{segment_2}"{/if} group_id="7" limit="4" paginate="bottom" } I wanted to do more checks on segment_2 ...
developarvin's user avatar
  • 2,347
1 vote
3 answers
500 views

Stash Embed Not Parsing

I used this technique on a site I just built with EE 2.7.0 and Stash 2.3.9. Now I'm trying the same technique on EE 2.7.2 and Stash 2.4.7, and it's not working! This is a simplified version just to ...
Trevor Davis's user avatar
1 vote
2 answers
116 views

Stash Destroys variable regardless of conditional

I have the following at the top of one of my pages: {if "{fn_zone}"!=""} {redirect="/store"} {if:else} {exp:stash:destroy name="delivery_day"} .... More stuff .... {/if} However, what I'm ...
madebyhippo's user avatar
  • 1,986
1 vote
2 answers
196 views

Low Events: How can I compare formatted start_date and end_date in conditionals?

I've just started using Low Events after realizing the hard way why I need it. I'm attempting to format a nice string when the range happens within the same month; instead of August 14, 2013 - August ...
Matt Stein's user avatar
1 vote
1 answer
896 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
179 views

Best way to access entry data from within Playa field?

I have a channel items and a channel colors, and the items channel has a Playa field item_colors that links to the colors channel. What is the best way to loop through the items entries and output a ...
Charlie Gorichanaz's user avatar
1 vote
2 answers
219 views

Stash Parse Order Issues

Im pretty sure the problem here is the parse order, but I'm struggling to figure out where the issue is. I have a page with the following on it: {exp:stash:set name="market_ids" parse_tags="yes"} {...
madebyhippo's user avatar
  • 1,986
1 vote
1 answer
119 views

Stash and Categories

Is it possible to set the category id in a channel entries tag based on the last segment or by another method so that I don't have to create multiple templates? I'm trying to get this template to fly....
user1267's user avatar
1 vote
2 answers
202 views

Cartthrob notification emails and Stash

This is most likely another Stash parse order issue, but I'm not sure. I'm trying to stay DRY and use Stash inside of Cartthrob notification emails. I have my templates set up like so: default_site/...
Jason Varga's user avatar
  • 2,688
1 vote
1 answer
151 views

Inline errors with Freeform composer

I would like to show inline errors on my composer form in Freeform. I tried the template code mentioned at https://expressionengine.stackexchange.com/a/25346/961 which is: <p> {composer:...
Patrick64's user avatar
  • 430
1 vote
1 answer
57 views

Parse isue with REST addon

Yet another parse order problem! I'm trying to use http://devot-ee.com/add-ons/rest. This works: {exp:rest url="/api/get-default-profile-image/175/" format="json"} {default_profile_image} {/exp:...
ExpressionEngineNewbie's user avatar
1 vote
1 answer
953 views

Possible to use Stash variable as entries parameter?

I found similar questions, but the “answers” were alternatives that won’t work here. If I missed an answer, please let me know! Thanks! I have been having trouble wrapping my head around how parse ...
Charlie Gorichanaz's user avatar
1 vote
1 answer
97 views

Using embedded templates with plugin that doesn't parse them

We're using an EE (2.6.1) plug-in that doesn't process embedded templates, which we would like to use. When we embed a template inside of the code below the embeded code displays exactly as is, non-...
jsuissa's user avatar
  • 283
1 vote
2 answers
308 views

How can I control output order using Low Variables and Playa

I am trying to control the order of my products using Low Variables (2.3.4) and Playa (4.3.3). I have a Low Variable of type Playa name lv_product_order which I use to output the ids in the ...
Thomas's user avatar
  • 293
1 vote
1 answer
421 views

Embedded variables conditional - Assets 2 Issue or parse order?

I am having an issue with an embedded template. I embed the template passing a "type" variable. Then, in the embed file it displays the content based on which "type" was specified. This all works, but ...
Shift2Design's user avatar
1 vote
1 answer
91 views

Stash set_list and cartthrob order_items not playing nicely, parse order perhaps?

I've got the following code which is meant to output a list of authors of orders in cartthrob that match a certain entry id: {exp:stash:set_list name="participants" scope="user" save="yes" parse_tags=...
JohnWBaxter's user avatar
  • 1,701
1 vote
1 answer
157 views

Embed Variables not parsing in time in embed placed inside of Playa Parents tag

I’m currently trying to add a safecracker form that either creates a new entry or edits the existing one depending on whether or not the CURRENT_USER has made one or not. Part of this also requires I ...
Christopher Kennedy's user avatar
1 vote
1 answer
95 views

Gmaps using stashed lat/long not working

I've got a google map (gmaps addon) that I'm adding pins to via low search results. Unfortunately I cannot seem to get the lat/long to pass through to the tag. My template is below. You can see a ...
CreateSean's user avatar
  • 4,757
1 vote
1 answer
35 views

Parse order question

I have a fairly complicated sequence of queries that I need run in order as later queries rely on results from a previous query and I'm using PHP to help refine and save data. I need to pass in a PHP ...
KoalaKid's user avatar
  • 487
1 vote
2 answers
354 views

Passing Plugin Values to Entries Parameter Woes

EE v2.7.2 Build Date: 20131008 I can't seem to find an elegant solution to make this work. I've setup a channel name "test" with a field named 'test_field' (Text Input). I've created some entries ...
Bransin's user avatar
  • 319
1 vote
1 answer
243 views

Channel Entries - Author Id Parse order

I have this code here {exp:channel:entries author_id="1|CURRENT_USER" channel="foo" disable="categories|category_fields|member_data|pagination" dynamic="no" ...
developarvin's user avatar
  • 2,347
1 vote
1 answer
93 views

Using stash:get_list as plugin parameter value

Can't seem to get this to work. See comments: https://gist.github.com/timkelty/6996339 {exp:gwcode_categories group_id="2" style="linear" show_empty="no" parse="inward" entry_id='{exp:stash:...
user2248's user avatar