Questions related to the ExpressionEngine "templating" system.

learn more… | top users | synonyms

1
vote
1answer
41 views

EE will not save templates as text files… No matter what

THE PROBLEM: When editing a template file via the control panel, saving it with "save template as text file" ticked gives the error: "Unable to save your template as a text file" The template is ...
1
vote
1answer
17 views

Expression Engine - Passing Custom Field Variables to Layout

I'm trying getting to grips with Expression Engine. Specifically passing custom field information to a master layout I have created two template groups. One for the overall layout including the ...
1
vote
1answer
14 views

Is there a way to disable auto-convert URLs and email addresses into links for custom member fields?

I have created a custom member field, {Google_Plus_URL}, where a URL like, https://plus.google.com/1051794532082275037724 can be entered. In my template, I reference this field as such: {if ...
0
votes
0answers
9 views

Add new page to member profile

I need to add the new one template to member profile. Is it possible? I can create new template in member profile directory. But how to link it in menu.html template?
0
votes
1answer
18 views

How to generate a manifest.appcache from a template?

I have a web app built with ExpressionEngine (2.8.0 at present) and I want to use it to auto-generate an appcache manifest file (I have been generating it manually). I can generate the content of the ...
0
votes
2answers
17 views

Template variable not parsing

We have a custom third-party module called qo5. All of our controllers are in there. I have a template that I need to pass a variable from a PHP function to. {exp:qo5 action="deal/getDealCode"} ...
0
votes
0answers
6 views

zoo visitor tags - profile view

is there a single tag to replace this? {exp:zoo_visitor:details}{current_position}{/exp:zoo_visitor:details} Seems a bit long and would be neater in my markup if I could do a single tag entry.
1
vote
1answer
22 views

Template group not appearing in file system

I've created a template group called temp, and inside this template group I've create a few templates. But when I try to view the templates I get a 404 error. I've checked my files and the ...
0
votes
1answer
25 views

GRID template syntac

having some problems with a GRID field type in my templates. I have an entrie setup with the grid field type containing three records. {exp:channel:entries limit="1"} {body_image} COUNT1 ...
0
votes
4answers
43 views

nested if statements - a better way

I have nested if statement for template selection - seems a bit cumbersome is there a better way? {if member_group == 5 } {if last_segment == "edit" } ...
0
votes
2answers
33 views

Rewriting urls of templates

I have some templates in a group called 'client area' they include client_area - profile - editprofile so these resolve to client_area/profile client_area/editprofile I want edit profile to ...
0
votes
1answer
13 views

Random template embedding?

I know you can easily load a random entry from a channel, but I wanted to know if the functionality exists in EE to randomly embed and load a template from a group? Thanks in advance for any guidance ...
0
votes
2answers
26 views

where are Server path to site's templates saved

I am working locally and occasionally have to push my files up to staging server, The problem is when I replace the database a variable gets overwritten and breaks my layout. Server path to site's ...
0
votes
2answers
29 views

Church Community Builder API Not Working In Template

I am using an api from a third party developer that I can get to work outside of EE with a simple PHP include, but I can't seem to get it to work within a template. You will see that this page ...
1
vote
3answers
230 views

Problems with nested code comments

Does anyone else experience issues with their templates when they nest code comments? I've inherited a project with some code already commented like this code code code code code code {!-- ... some ...
1
vote
2answers
70 views

Two different layout for the same template

I was wondering.. can I use the same template to display the page in two different layouts? and how you can switch from one layout to another without adding any segment? it would be nice for me to ...
1
vote
0answers
33 views

Can I use MySQL session variables within a query in my template?

I'm trying to execute a query similar to this: SET @last_date = NULL; SELECT IF(dates.first_entry = 1, DATE_FORMAT(FROM_UNIXTIME(col_id_122), '%W, %M %d'), NULL) start_date, ...
0
votes
1answer
19 views

Moblog - Can't get the template to work

I'm really confused about this moblog feature. And I can't understand what the documentation tells me, I don't feel it distinguish how the moblog template should look like, and what the email template ...
2
votes
0answers
35 views

Site “forgot” what the default template was

I've had the same problem happen a few times, on several different EE sites, but I can't determine the cause so I'm turning to y'all. Symptom: The site's main index page will fail to load and will ...
0
votes
1answer
22 views

Template Access Restriction Redirection is not working

I have a template where I only want "Members" to be able to access. If a user that is not part of the "Members" group tries to access that page, I want it to redirect to a sign-up/index Here is what ...
2
votes
1answer
55 views

Template 404 Redirect

Do you know if it's possible to redirect to a specific 404 page when a template group isn't found rather than just show the 404 with the incorrect url? For example, If I go to ...
2
votes
1answer
23 views

Template usage based on category

Is it possible to use particular template group based on a category of landing page? For an example product categorized as furniture will load template from furniture template group (index) instead of ...
1
vote
1answer
32 views

efficient category templating

In the URL www.site/recipes/meat, the segment 2 is a category, so, to make this work, I use a template with the category´s name: the category template, is named (meat): {embed="recipes/.recipes" ...
0
votes
1answer
49 views

Parse error: syntax error, unexpected 'II' (T_STRING)

I recently updated to EE 2.7.3 and noticed that I am getting the following error at the top of all my pages: Parse error: syntax error, unexpected 'II' (T_STRING) in ...
0
votes
0answers
32 views

Problem parsing deep arrays with parse_variables()

I have a problem with the parse_variables() method once my data contains an array at a certain depth: foreach ($cvs->result_array() as $id => $row) { $variables[] = array( 'id' ...
1
vote
3answers
49 views

Template group urls

I have a template group called 'site. These are my top level generic templates, I would like to exclude the site part of the url so, http://mysite/site/aboutus I would like to remove the 'site' ...
0
votes
1answer
35 views

Playa: Specify a default child entry if none is selected

I have a channel with a playa field where users can select a block of content to insert into a page. Is there a way that I can specify a default child entry to display if the playa field is left ...
2
votes
1answer
56 views

Twitter Summary Cards in ExpressionEngine

Any ideas how I can make use of Twitter Summary Cards via ExpressionEngine?
1
vote
1answer
59 views

How can I create 2 different layouts on same page with channel entry list and single channel entry?

I am creating a page in my site with a list of entries under 1 channel. I have the template structure as follows: collections/ss14 collections/aw14 collections/index The ss14/aw14 templates pull ...
0
votes
1answer
32 views

UTF8 characters for Javascript template

I have a strange situation where Russian characters are outputted as garbage if the template type is JavaScript. I.e. "Российской Федерации" is outputted correctly if the template is "Web Page", but ...
1
vote
2answers
52 views

Use different templates for different categories

I want to use different templates for my categories. E.g. there are 4 templates (t1, t2, t3, t4) and I want to assign them to my categories like Dogs (t1) - small dogs (t1) - big dogs (t1) Cats (t2) ...
0
votes
2answers
62 views

Detecting Server Environment in Template - {site_url} Conditional Fails

Problem: Include analytic JS code in production, but not in staging or development. Attempted to detect production environment with: {if "{site_url}" == "http://www.example.com/"} ... but that's ...
1
vote
1answer
44 views

How can I apply field formatting (markdown) when parsing a template in a module?

I have a module that processes web forms and uses a template to generate an email when finished. Here is the module code: $data['message'] = $message; $this->EE->load->library('Template', ...
1
vote
1answer
35 views

When parsing {exp:channel:entries} are all channel fields loaded, or only the ones used in the template

Scenario: I have a collection of projects (the channel) in a portfolio page (the template), with the title and feature image showing on each. When I click on a project, I want to have a modal box with ...
1
vote
1answer
46 views

Slide Show on homepage

We implemented a slide show in our homepage and would like to place a video as one of the sliding images. Can a slider include a video? If not, can you toggle between video and slider in the CMS?
0
votes
1answer
20 views

Snippets breaking on one entry, but not others?

What would cause an EE template to barf on one set of comments but not another? For example, the comments on this page are messed up: http://alistapart.com/comments/seo But it doesn't seem to be ...
2
votes
1answer
38 views

Template that iterates through channel entries and outputs categories that are selected for each entry

I've found it perfectly possible to output a list of all of the categories for a channel, or a list of all of the categories that are not empty for a channel. But when I am iterating through the ...
3
votes
3answers
211 views

How do you remove template group from URL?

I've scouring through StackExchange looking for an answer for the last few days with no luck. These are the suggestions that I've seen without any real detail or resources: 1.) Somehow use the ...
1
vote
2answers
143 views

Website very slow

I think I have a design issue which makes my site very slow! Probably I used the EE templating in the wrong way, however I can't find a better way, hopefully until now! From php I'm used to include ...
0
votes
3answers
61 views

Check if a template group exists

Is there a way to check if a template group exists either in the templates or in a add-on? For example, I would want to do something like this {if {exp:foo:template_exists name="blog/test"} == ...
3
votes
3answers
77 views

How to check for a boolean field?

I am writing a plugin, and everything is working fine so far. Some of my source data includes booleans. So I want to be able to test for true or false. {if show_data} <p>This is some ...
1
vote
1answer
28 views

An easy way to reorder many template groups at once

I'm wondering if there's an easier way to re-order template groups on the template manager screen, something that's easier to do in bulk than clicking and dragging one at a time. Thanks.
0
votes
1answer
39 views

What is the easiest way to display author information on channel entries in a template?

In EE 2.7.2, If you have a channel where there are various authors to different articles, is there a way using the full version of EE to simply show some fields based on the author? The goal would ...
2
votes
2answers
90 views

Structure - subnav shows full nav, not sure why

updated with EE and Structure Version EE 2.7.2 Structure 3.3.4 I'm building a site with structure and for each section of the site the child pages will be in the side bar so that if I'm on ...
0
votes
0answers
18 views

Lag in Data Returned

I have a pretty simple template set up that has one image and a block of text, but for some reason the page takes 3 seconds to load at 37 queries. I have tag caching set so subsequent loads of the ...
0
votes
1answer
26 views

Fatal Error Message in EE CP when I want to open a template pr submit changes to a template

Sorry very new to EE. What do I do to sort out the following error Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 49 bytes) in ...
0
votes
1answer
75 views

Templates in CP take over 4 minutes to load

When I click on design/template/edit/XXXX/index or view the page is taking over minutes to load. Same issue under ADMIN. All othe sections load super fast. related question Fatal: Error Message in EE ...
0
votes
1answer
34 views

Getting random, unformatted page on Template/Channel Entry Edit [duplicate]

Quick run down of the site: EE 2.6.1 Media Temple Grid Service Since we moved the site to their production server, we've noticed that we will randomly receive a page that is missing any formatting ...
1
vote
4answers
164 views

Save template as a file error - due to MAMP?

In Template Manager I am trying to save my template (site/index) as a file. When I click update I get this error: unable to save your template as a text file I have asked around and searched and ...
2
votes
3answers
122 views

Sub categories information not being displayed

I have the following code within a template <h1>{segment_2_category_name}</h1> {exp:channel:categories show="{segment_2_category_id}" style="linear" parent_only="no"} ...