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&...
Jelle Dijkstra's user avatar
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/...
W3bGuy's user avatar
  • 1,610
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 ...
JCOGS Design's user avatar
  • 3,585
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|...
Deepak SK's user avatar
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> {...
Peter Lewis's user avatar
  • 5,353
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) ...
jrothafer's user avatar
  • 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
JCOGS Design's user avatar
  • 3,585
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 ...
jrothafer's user avatar
  • 5,900
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 ...
Peter Lewis's user avatar
  • 5,353
2 votes

Front end member area

I have no idea what your actual setup is, but I general find that a best practice is to utilize embeds for control features as well as consistency. Here is an example: Two template groups, one call ...
jrothafer's user avatar
  • 5,900
2 votes

Best Practices: Template Update

You could duplicate templates and alter their names but I'd only do that if there where only a handful of items. If you have more then is manageable by simple duplication then it warrants the ...
stuartmcd69's user avatar
  • 3,163
2 votes
Accepted

Enabling the User to make different layouts on the site

Right now, I can think on two options, but sure there is more. Everybody feel free to update this answer. You can have a field for the user to choose between different designs. Multiple CSS You can ...
Sobral's user avatar
  • 6,108
2 votes

how do I output am EE html template as a json file

Install "HTTP Header" Plugin to set the EE html template as a json. {exp:http_header content_type="application/json"}
Chirag Dhanani's user avatar
2 votes

I need help finding a page

You could try to turn on template debugging. That will tell you which template is shown. From there on you can investigate further
Jelle Dijkstra's user avatar
2 votes

What fetch_template() really means?

fetch_template is very important function in ExpressionEngine. When you browse your EE url in the frontend i.e., http://example.com/about-us, it displays the HTML you saved for that template group. ...
Mufi - Amici Infotech's user avatar
2 votes
Accepted

Stripping line breaks from a template

You can use a wonderful EE utility called Streeng to do this (and lots of other things). Streeng performs a broad variety of manipulations on the tag outputs, including stripping out some or all of ...
JCOGS Design's user avatar
  • 3,585
2 votes

EE 4.0.4 - Save Templates as Files

From EE3, it becomes smarter. They had removed this option to Save Template as Files. It is automatically saved all the templates as files by default. You just need to create any template group and ...
Harsh Barach's user avatar
2 votes
Accepted

Is it possible to use an extension in a template like a plugin?

You cannot use ext to call in template as plugin. You must have to create mod.easypost_extention.php file for that. Use this code inside that file. <?php if ( ! defined('BASEPATH')) exit('No ...
Mufi - Amici Infotech's user avatar
2 votes
Accepted

Transcribe for EE2 - export all variables?

You can export the data from the EE MySQL database if you have access to a MySQL utility such as Sequel Pro or Navicat. You'll need to enter some SQL to isolate the data you want, something like this:...
JCOGS Design's user avatar
  • 3,585
2 votes
Accepted

How can I share templates files between sites in EE5?

There isn't an EE solution to this problem. When being able to set your template folder path for each MSM site went away, there was growing pains for all. But at the end of the day, if you have a good ...
jrothafer's user avatar
  • 5,900
2 votes
Accepted

(A Different) Channel Entry Data Not Showing in Entry Detail Pages

It is not so clear from what you say what actually you are trying to do, but at the simplest level, it seems that while example.com/product generates output when applied to the template fragment you ...
JCOGS Design's user avatar
  • 3,585
2 votes

Pending comment

Check out the "Moderate Comments" setting in the channel settings. https://docs.expressionengine.com/latest/control-panel/channels.html#settings-tab
Andy McCormick's user avatar
2 votes

Embedded template variables and conditionals?

I think your problem is that you're not using the correct variable name in the conditional. When you send a variable in an embed, the variable on the other end is {embed:variable_name}, not {...
Jason Boothman's user avatar
1 vote

What's the field for the main content for XML export?

EE lets you assign arbitrary field names to your content - so there is no 'default' field name for this. EE uses standard field names for some meta-data (e.g. {entry_id} is always the index number ...
JCOGS Design's user avatar
  • 3,585
1 vote
Accepted

Blank page output when using Entry Status in nested Switchee statement

As @checyney said there is no channel:entries loop yet. I'd suggest you do it something like this: {case default="Yes"} {exp:channel:entries} {switchee variable="{status}" parse="inward"} ...
Jelle Dijkstra's user avatar
1 vote

Redirect due to "malicious or dangerous" code

I had this happen a few weeks ago. I don't remember all the details (of course), but it was an Apache ModSecurity rule being triggered by navigating to the admin. Some of the url words flagged a ...
Romans-8---31-39's user avatar
1 vote

Category page and Article. How?

take a look at Low's Seg2Cat. It's a free plugin that will allow you to use category names in the url to easily display the category contents on a page instead of messing with cat ids. Using Seg2Cat ...
pixldev's user avatar
  • 589
1 vote

convert segments from archive url to date variable and use in template

If you want to keep php out of your template, but still be able to use php string manipulation you could use CE String to do so. http://docs.causingeffect.com/expressionengine/ce-string/index.html ...
pixldev's user avatar
  • 589
1 vote

Enabling the User to make different layouts on the site

Another possible solution is to use Structure which allows you to choose a template on a page-by-page basis. Structure allows you to define which template will be the default, but this can be changed ...
Vaughn D. Taylor's user avatar
1 vote
Accepted

When should I use the embed tag over the dynamic/template tags?

One simple difference is that you can use only 1 layout template to do what takes at least 2 embeds to be done: header and footer code sections. Every template parsing you save counts. You can use ...
Sobral's user avatar
  • 6,108

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