4 votes
Accepted

$_POST to EE template not working as expected

Do you have PHP Parsing Stage on "Input"? <form method='POST' action='gen_req'> <input id='input' name='uid' placeholder='uid' /> <button class='btn'>Go</button> </form&...
  • 131
3 votes
Accepted

Adding quotes around a parameter causes error?

I believe you're running into problems with the parse order. When you add quotes, recipients becomes a valid parameter but it isn't parsed yet. When you remove the quotes, it becomes an invalid ...
3 votes

Is it possible to lock a template in Template Manager?

I can see couple ways to do this: Create a special group as copy of SuperAdmin, but w/o rights to edit specific template group, where you will keep your original templates. You can activate option ...
3 votes

Quick and simple way to determine which templates are used on an EE site and where

There's a similar post here But you could just look in the template debugging info. Another option would be to add something to each template that shows its name (either output to screen or as an ...
  • 7,176
3 votes
Accepted

SEO in URLs - dynamic template names?

Your default template group index can catch these URLs and embed the relevant template you want to display to list products. But I'd be cautious on the amount of effort it will involve for little ...
  • 5,353
3 votes

Save As File & Low Variables

Enabling Save As Files in Low Variables does have a slight performance impact. In order to tie in to native EE functionalities, LV needs to update the native exp_global_variables table with the data ...
  • 11.3k
3 votes
Accepted

Use config variables in templates?

If by config variables, you mean the ones on config.php, it's pretty easy to do. On your config.php add the following code: global $assign_to_config; if(!isset($assign_to_config['global_vars'])) $...
  • 6,108
3 votes

Grid "no_results" not working?

There is no no_result variable or condition for grid. Use total_rows instead. {if store_telephone_data:total_rows >= 1} ... {if:else} <td>N/A</td> <td>N/A</td> {...
  • 5,353
3 votes
Accepted

Parameter and Dynamic Variables

Layouts are a bit hard to get your brain around to begin with. There are two things you need to know, and I think you'll be on top of it. Layout templates work by letting you drop the content from ...
  • 3,587
3 votes
Accepted

Using Playa passing values

I have resolved this by adding the option parse="inward" to the {exp:playa:parents} tag. So my code looks like below {exp:playa:parents channel="article|blogs|calendar_events|contests|podcasts|...
3 votes

MSM - Template on site 1 and I want different url on site 2 to goto that template

Per the docs: https://docs.expressionengine.com/latest/msm/code.html#embedding-templates-from-another-site Just embed the template and pass the variables. '{embed="site_short_name:template_group/...
  • 1,610
3 votes
Accepted

How to load different stylesheets depending on the template

The simplest and and most flexible way is to use Template Layouts. In your main HTML Layout wrapper (simplified) which we will say is named "_html-layout" in the "layouts" template group: <html&...
3 votes

Channel entries vs embed files

I'm really confused by your question, but I'm going to make an attempt at clarifying some base concepts that I think you are wrongly assuming about a commercial grade CMS (content management system) ...
  • 5,900
3 votes

Moving "templates" folder in EE5

There are clear instructions on how to move not just the templates but the whole of the system folder above the HTML root in the EE documentation. HTH
  • 3,587
3 votes
Accepted

Relationship Field Conditional Not Working

Although it is technically less efficient, you should try embedding it to render as a tag in the conditional like so: {if '{featured_movie:video_id}' != ''} Try that. As in the docs, if it isn't ...
  • 5,900
2 votes

Matrix rows out of order when outputting

Strange that you're getting a random output since orderby="id" is the default. Are you sure there isn't some kind of JavaScript that's reordering your fields on the front-end? You could try disabling ...
  • 611
2 votes
Accepted

Page responds with just a hash

How to fix Disable template caching on all templates. Problem #1: Why is the template rendering as {c1a3d...8712}? This bug was caused by EE's Template Caching feature and Stash. Stash has two ...
2 votes
Accepted

Search relationship or relationship conditional

First thing to try is to remove the second conditionl to be sure it's that one which causes the problem. Try using quotes in your second conditional so it looks like; {if "{profession}{profession:...
  • 7,176
2 votes

Child Page templates

ExpressionEngine relationships between pages / entries in the core are linear, there is no such thing as a child page. If you want to have nested URLs, have a look at third-party add-ons, such as ...
  • 2,846
2 votes
Accepted

rawurlencode not rendering correctly in anchor tag?

It looks like you need to enable PHP in your template. Alternatively, you could use a plugin for the URL encoding. For example URL Encode or CE String. It's generally considered not the best ...
  • 7,961
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,255
2 votes

How do I add a content-type header to my template?

You can use the HTTP Header plugin for this: {exp:http_header content_type="application/json"}
  • 4,002
2 votes

Quick and simple way to determine which templates are used on an EE site and where

AFIAK there is no quick/easy/simple way. You're on the hook for trying to generate every page within the site and reverse-engineering it to see what templates were involved. With Templates Routes now ...
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....
  • 7,961
2 votes

Simple exp:channel:entries not working on specific template

Adding dynamic="no" fixed this issue.
  • 141
2 votes
Accepted

Why are all snippets loading several times on page load?

The snippets are not actually "loading" - they are simply bits of text being stored in memory (much like global variables). They aren't actually processed until they're called. So they're not an ...
  • 17.4k
2 votes
Accepted

Template Debugging: which entry is actually slow?

As a general rule in reading debugging logs, output statements that are designed to allow developers to profile the speed of their web application are always placed at the start of methods. Not the ...
2 votes
Accepted

Channel does not show entries on specific template site

Add dynamic="no" to your parameters like this {exp:channel:entries channel="gallery_slider" category="6" limit="1" dynamic="no"} test output {/exp:channel:entries} ExpressionEngine tries to ...
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 ...
  • 5,234
2 votes

Display Wordpress blog entries inside Expression Engine template?

Just to add to @jrothafer's answer, this should hopefully sort your import issue: Data Grab Article on importing Wordpress site into EE And I'd have to highlight his statement regarding maintenance ...
  • 5,353

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