Skip to main content
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
Results tagged with
Search options answers only not deleted user 343

Questions related to the ExpressionEngine "templating" system.

2 votes
Accepted

My template files are not in system > expressionengine > templates. How can I figure out whe...

The templates are saved on database, by default. If you want to save them as files, you need to enable this feature on Design > Templates > Global Preferences > Save Templates as Files. … The template as files and on database can be synchronized on Design › Templates › Synchronize Templates. …
1 vote

Permalinks going to 404

It was an .htaccess issue. Nick didn't know that a .htaccess file is need to remove the index.php from the URLs.
Sobral's user avatar
  • 6,108
1 vote

1 template, multiple pages, different content

On EECMS, every directory of templates is the first segment of a variable. … Just after this, you can start thinking about templates. This is a really long discussion and I don't know if this is the better place for it. …
Sobral's user avatar
  • 6,108
2 votes

Bypass EE's Template Parsing Structure

Try this: templates test.group index.html another-file.html styles.group foo.css scripts.group bar.js Or, if you templates are on or below the site root, you … css" /> <script src="{site_url}themes/site_themes/default/test.group/assets/scripts/bar.js" type="text/javascript"></script> By this way, depending on your server setup, anybody can find your other templates
Sobral's user avatar
  • 6,108
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 …
Sobral's user avatar
  • 6,108
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. …
Sobral's user avatar
  • 6,108
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 …
Sobral's user avatar
  • 6,108
4 votes
Accepted

Embedding templates with conditionals

Robert! First of all, let's fix your conditionals. Conditionals using numbers don't need quotation marks. From docs: If you are testing against a word, you should enclose the word in single or d …
Sobral's user avatar
  • 6,108
3 votes

How to tell if template is being accessed by mobile?

The only way of do this is using addons. There's a lot of them on Devotee. This looks a good bet, but I never used any of them. Maybe it's better to use some front-end technique for this.
2 votes
Accepted

How to test for the entry_id of a related entry?

After the parsing of the related entry, if there's no related entry, your conditional will became this: {if:elseif == 48} As you can see, this doesn't make any sense. So, add quotation marks: {if: …
Sobral's user avatar
  • 6,108
0 votes
Accepted

Using a status colour on the front-end

You can't, my friend. Your suggestion of code is the best option.
Sobral's user avatar
  • 6,108
1 vote
Accepted

Display Description in Nested exp:file:entries Tag

You should never to nest exp:channel:entries, but, in this case, you have a fair reason. Let's use an embed! {exp:structure:entries channel="iconGroup" limit="1" sort="asc" paginate="bottom" disable …
Sobral's user avatar
  • 6,108
1 vote

Config variables in templates

assign_to_config['global_vars'] = array(); So, I believe that you can set some config variables by this way: $assign_to_config['global_vars']['cv_smtp_port'] = $config['smtp_port'] = '587'; On your templates
Sobral's user avatar
  • 6,108
0 votes

Access Find & Replace Tool Without Template Warning

The available options are: Site Preferences Channel Entry Titles Channel Fields Templates
Sobral's user avatar
  • 6,108
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 …
Sobral's user avatar
  • 6,108

15 30 50 per page