5
votes
With Mountee gone, what simple and efficient workflow is there to replace it?
I don't think it's left that many short to be honest.
Most developers I'm aware of save their templates as files.
Whilst I'd always recommend having version control in place, you don't need it, you ...
5
votes
Accepted
What is best practice for protecting templates saved as files?
It looks like you moved your templates folder to outside the system folder. Since you already did it, why not move it to above the web root?
Just remember to update the related settings.
(see "Server ...
Community wiki
4
votes
Template Routes and extra segments
Yup - make sure you set "require all segments" to "no", then just add another segment to the rule:
/about/{extra:alpha_dash}
:alpha_dash means that the segment can contain alpha-numeric characters, ...
4
votes
Permission Groups, Structure, and Entry Access?
You need to create a channel field into that channel and
in channel entry, you need to assign that user group type who can access the page.
for eg:
Suppose you have a channel (named as "XYZ") and
...
4
votes
Accepted
Link to CPanel from templates
Starting from version 2.8.0 you can use standard global variable for this
{cp_session_id}
if you want to make link to edit entry, don't forget about special tag for this which available from version ...
4
votes
Template Route Already in use
The problem is having no rule and having alpha_dash are exactly the same thing, so the error message is correct, those are duplicate routes. If you added the :pagination rule to the {pagination} ...
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&...
3
votes
Accepted
Permission Groups, Structure, and Entry Access?
I did this exact same thing all natively with the exception of structure a few months ago. The challenge was to provide member groups access to different information on the same template with the ...
3
votes
Accepted
Template Embed: how to embed JSON?
Take a look at JSON by Rob Sanchez. It works very well if you need to output ExpressionEngine data in JSON format. It has a lot of useful parameters.
The plugin tag can go right into your template ...
3
votes
Accepted
Live Look Template
I think the add-on Zenbu will open the live-look previews in a lightbox style modal if you wanted to use that. It's pretty good and gives you the ability to create custom views for entry lists.
...
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 ...
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 ...
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
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
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 ...
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
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
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
Use array values in expressionengine template
If you want your variables to be in the subscriptions:sub4 format, you should try this:
foreach ($subscriptions as $key => $value) {
$data['subscriptions:'.$key] = $value;
}
return $this->EE-&...
2
votes
Accepted
Using Stash to get data from 1 of 2 fields
There's no need for conditionals as the fields are mutually exclusive. With Stash on the inside of channel:entries tags there's also no need for parse_tags or parse_depth since the enclosed content ...
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-...
2
votes
Accepted
List all channel entries in a Single Template menu?
Try adding dynamic="no" to your channel:entries loop
2
votes
Accepted
Moblog - Entries aren't created, no error
Finally managed to fix this issue. First of all, I suspected that the default field in the moblog config could be the culprit. So it became apparent that moblog only supports textarea and textfield by ...
2
votes
Accepted
ExpressionEngine: How do I block direct access to templates that I am using for embeds only
In versions of EE2 prior to 2.9 if you start the template name with a dot it will not be directly accessible.
In the just-released EE 2.9 you can specify a different character instead of dot and ...
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