3
votes
PHP parsing stage
Do this right way - do not follow the dark side.
Put all your php code into plugin. Your code is not good even from optimization way - not good solution to loop the channel entry. Just make function ...
2
votes
Accepted
Parse Order: how to pass a value from PI as an embed variable?
If it's two plugin tags that you are needing to nest, see changing parse order for nested tags using the parse="inward" parameter.
2
votes
Accepted
Global variable as a module tag pair's parameter?
One really simple way to get around parse order is just to use an embed.
{embed="embeds/_rest" ip_address="{ip_address}"}
Then in your embedded template (embeds/_rest):
{exp:rest url="http://domain....
2
votes
Accepted
Parsing code in a textarea field pulled in with Playa
Wow! This looks so complex...
Please, try using this first party add-on:
{exp:channel:entries channel="Pages" disable="member_data|pagination|categories|category_fields"}
{exp:playa:children var="...
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. ...
2
votes
Accepted
Inline errors with Freeform composer
For EE3, it appears that Freeform 5.x is a bit fussier about the conditional. Try this code instead:
<p>
{composer:field_output}
{!-- composer:field_name will parse first to the field'...
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} ...
2
votes
Accepted
Parse isue with REST addon
The easiest solution would be to use Mo Variables which provides an early parsed {logged_in_member_id} which will allow you to use it as a dynamic value in your URL path.
{exp:rest url="/api/get-...
1
vote
CE Image, variable not parsed inside src image
Stash is very useful sometimes, but also is notorious for exactly this kind of obscure fail behaviour. Just look at the kind of questions asked about stash in this forum and you will see that you are ...
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 ...
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 ...
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 ...
1
vote
Accepted
{structure:page_uri_for:X} and parse order
The {structure:page_uri_for:XXX} variable is parsed late, after template parsing has occurred (using the template_post_parse hook). In other words, too late to be used as a tag parameter in your ...
1
vote
Handling no results redirect with Stash
Since this question has been answered above, but hasn't yet been added as answer, I'll answer it here, so it can be marked as answered and corrected.
I ran into the same issue but solved it a little ...
1
vote
Assets Field within Structure Entries
I have added an updated version of parse_file_paths by rsanchez as a fork which now will work in EE 3.x and up.
All I did was to add the addon.setup.php file to the zip file with the appropriate ...
1
vote
Accepted
Set Stash variable in Channel entry loop, then use in email contact form? Parse order issues?
Hmm,
Using {stash:set} in your example will only ever record your last record. You could be better off using {exp:stash:append}
{exp:channel:entries
channel="advertisers"
disable="categories|...
1
vote
Accepted
Setting Stash variables inside Channel entry loop - parse order problems?
Thoroughly untested but this could work (in theory)
{exp:stash:set parse_conditionals="yes" parse_tags="yes"}
{if {embed:advertisers_entry_id}}
{exp:channel:entries
channel="advertisers"
...
1
vote
Accepted
Use Custom Field as Timezone Parameter in Date Field
If I'm inferring correctly, there are events in multiple time zones and they want each to show in the time that is local to the location of the event. If so, I think what you want is Fixed instead of ...
1
vote
Parse order question
Well... You can't do that in a easy way, because the first exp:channel:entries need a PHP parsing on output, but the second one need it on input.
You can, of course use an embed.
[...]
{embed="...
1
vote
Accepted
Stash & Switchee parse order problems
It looks like you're simply testing to see if the nested entries are empty or not. Could you not use something like:
{exp:stash:get_list name="buy_now_options" parse_tags="yes" parse_conditionals="...
1
vote
Only some PHP being outputted
First thing, do you have php enabled on the template? It looks like it is thinking that:
<?php
include "Eventbrite.php";
$authentication_tokens = array('app_key' =>
Is just a bad html ...
1
vote
Best practices: Location-aware Navigation in EE2?
Using segments as Anna described in her answer definitely works well for some sites. But it can get tedious on large or deep navigation trees and is not practical when the client needs to manage the ...
1
vote
Best practices: Location-aware Navigation in EE2?
I personally always take the route of using segment conditionals to set my active state CSS class. It's easy to code and manage since it's handled in one template.
<li><a {if segment_1 == '...
1
vote
Using plugin results within channel tags
Working
{html_open}
{html_head_end}
{html_body}
{embed="app_includes/header"}
{contentpanel_open}
{exp:channel:entries channel="planilla_de_indicadores" limit="100"}
{if {exp:...
1
vote
Stash - {exp:stash:is_empty} or {exp:stash:not_empty} is not working properly
I've tested this in the latest version of Stash on EE 2.8.1 and can't replicate your problem - it works fine for me.
Is there anything else in your template that could be causing it?
Are you using ...
1
vote
Stash - a variable that was set is not showing the correct value
It's a parse order issue, your setting stash inside outer tags then trying to retrieve outside the order, i'd probably do this:
{exp:stash:set parse_tags="yes"}
{stash:results}
{exp:rest ...}
<...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
parse-order × 108stash × 40
templates × 15
low-variables × 13
conditionals × 11
playa × 9
channel-entries × 8
parse × 8
embeds × 7
ee2 × 6
php × 6
ce-image × 5
global-variables × 5
parsing × 5
matrix × 4
structure × 4
plugin × 4
categories × 3
assets × 3
add-on × 3
switchee × 3
snippets × 3
low-events × 3
cartthrob × 2
ee3 × 2