Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions related to the ExpressionEngine "templating" system.
0
votes
Expression Engine returns 404 on Javascript template
If you want to load a template file saved together with all others EECMS templates, you need to use the path variable:
<script src="{path='javascript/products'}"></script>
In case of a css file, you've … a specific variable for them:
<link rel="stylesheet" media="all" href="{stylesheet='channel/channel_css'}" />
This is necessary because is a good practice to keep your templates folder inaccessible …
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 …
1
vote
Accepted
When should I use the embed tag over the dynamic/template tags?
a exp:channel:entries tag inside another one or a exp:comment:entries inside a exp:channel:entries;
to have a different template cache time on an embed from the template it's loaded;
to have similar templates …
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} &ndash …
3
votes
Accepted
Use config variables in templates?
Let's say you set the mail protocol used by a System Config Override:
$config['mail_protocol'] = 'sendmail';
If you need to access this info on templates, you need to create a template variable:
$ … config['mail_protocol'] =
$assign_to_config['global_vars']['cv-mail_protocol'] = 'sendmail';
On templates, you can use {cv-mail_protocol}:
{if cv-mail_protocol == 'sendmail'}
The emails are being …
-1
votes
How to escape special HTML characters in output?
There's a first party add-on for that.
<meta name="description"
content="{exp:html_attribute_content limit="200" end_char="…"}{meta_description}{/exp:html_attribute_content}"
/>
There's a l …
0
votes
How to update database templates from files?
You have to enable the save templates as files back and then synchronize the templates. After that, you can disable it again.
Yeah, it's annoying. …
2
votes
Template Route Already in use
Well, Sean. Now, we have a problem. I already had this discussion with EllisLab, but I believe you should too. Their answer was to use something like:
/about/news/{news-post:alpha_dash}/{pagination}
…
0
votes
Contains operator not working for channel field that uses checkboxes
I never used a checkbox field, but I believe they can should be used as variable pair in case of more than one possible option.
So:
{destination}
{item}
{/destination}
Will return every item che …
5
votes
Accepted
What is best practice for protecting templates saved as files?
(see "Server path to site’s templates" at the bottom of the page)
To keep all system files above the web root is good practice.
Alternatively... … templates at URLs like http://example.com/templates/default_site/news.group/index.html, but ExpressionEngine will still be able to load the template just fine at http://example.com/news …
1
vote
Template Embed: how to embed JSON?
For this you gonna need an add-on. EECMS can't do this by its own.
There are two good options:
Rest - it's a good option. Besides the developer, who has an excellent reputation, had abandoned the p …
0
votes
Access Find & Replace Tool Without Template Warning
The available options are:
Site Preferences
Channel Entry Titles
Channel Fields
Templates …
2
votes
Expression Engine - Passing Custom Field Variables to Layout
If your trying to pass a simple value to your layout, you can set it on the layout tag. For example:
{layout="pages/.layout" body_class="contact"}
But custom fields variables need to be parsed by t …
0
votes
Accepted
nested if statements - a better way
last_segment == "edit" }personal-profile-edit{if:else}personal-profile-view{/if}'}
But you can't because, while last_segment is parsed at stage 5, member_groupis parsed at stage 26, even after the embed templates …
1
vote
How can I apply field formatting (markdown) when parsing a template in a module?
You should set the parameter parse to inward in you module opening tag, so the {exp:markdown} will wait for the {message} variable be ready.
If you show you module tags, I can write a sample code.