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>
{...
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']))
$...
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
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/...
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) ...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
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.
...
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"}
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 ...
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 ...
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 ...
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:...
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 ...
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 ...
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
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 ...
1
vote
Forbidden: You do not have permission to access this document - When attempting to save a Template
The issue was that the Hosting Provider had enabled mod_security in the middle of the day (right when I had taken a slight break) without notifying me of this ahead of time.
They disabled ...
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 ...
1
vote
Accepted
Trying to get category name to show on category page
There are different ways of create a category page.
If you're using the "default" way, the Channel Category Heading Tag can help you:
{exp:channel:category_heading}
<title>{category_name} &...
1
vote
Accepted
Return Variables to a Template
I had similar situation this week.
I've made two functions - one for the form template tag and second is action callback that works with form data.
In this manner I could output information with ee()...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
templates × 556channel-entries × 50
ee2 × 47
categories × 27
php × 24
stash × 21
channel × 20
template-scripting × 20
conditionals × 18
structure × 17
url × 17
playa × 16
relationships × 16
tags × 16
add-on × 15
parse-order × 15
plugin × 14
embeds × 14
template-manager × 14
add-on-development × 13
parsing × 13
members × 12
ee3 × 12
multi-site-manager × 12
matrix × 11