Questions tagged [templates]

Questions related to the ExpressionEngine "templating" system.

76 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
1answer
347 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 ...
2
votes
2answers
200 views

Unable to upload files

I need to get images added to a team page, however there is no error message showing, when viewing images that are in the library, they are showing as checkered boxes (checkered wallpaper). Not ...
2
votes
0answers
195 views

PHP Error from relationship field: Undefined offset: 95, Filename: relationship_parser/Tree_builder.php

I have a template that is pulling in the parents of a relationship field with the {parents} tag. I'm seeing a notice when I load the page for each of the {parents}. The child's data is just a text ...
1
vote
0answers
26 views

PHP in Template Forbidden - Can't even save

On EE 2.11.7, I've enabled PHP on a template and set it to output and even a simple echo of some text between PHP opening and closing tags results in a Forbidden error page when I try to save the ...
1
vote
0answers
68 views

Changes to Templates not saved as files

I have a EE 3.5.6 project. "Save templates as files" is enabled. When a change is made to a template in the Template Manager and saved, I get the notice that the template has been saved, however the ...
1
vote
0answers
72 views

Parse template and get content with PHP

I developed an extension for EE2 much earlier for parsing template to send the content to an email address. Now I am porting it for EE3 and facing problem that instead of returning parsed template ...
1
vote
0answers
176 views

getting a EE template to function as a php file

Is there a secret to getting a EE template to function as a PHP file? I have a map that is loading the data from a php file. I want to load the data from an EE template instead. I have set the ...
1
vote
1answer
140 views

Expression Engine returns 404 on Javascript template

I have a bit of an issue with a project I recently took over using Expression Engine running v2.92 (I think). I'm pretty new to EE so maybe I'm missing something obvious. The javascript template ...
1
vote
1answer
52 views

Code-driven way to enable PHP parsing on a template

Still a bit new with EE2, but I'm looking to be able to construct a way we can push changes up in environments, without having to sync up database-level stuff. Right now I have several templates that ...
1
vote
1answer
968 views

URL and Routing Issues, anything other than index gives 404

Hi I am fairly new to ExpressionEngine, but I am having an issue navigating from the Index Page. When ever I click on a link to view an entry it always gives me a 404 error. I think it might be a ...
1
vote
1answer
38 views

NavEE selected_class=“on” becomes class=“yes” - possible to solve w/o updating styling?

I assume due to some bug in the parser, {exp:navee:nav nav_title="header" selected_class="on"} Outputs <ul> <li class="yes"><a href="/foo">Foo</a></li> <li&...
1
vote
0answers
106 views

Unable to create Template group within template manager

I'm currently in the midst of developing a new EE site and it has been going relatively well. Up until now when I've run into a peculiar problem which I have never encountered previously. (at least 6 ...
1
vote
0answers
38 views

Embeding a playa in matrix using tabs

I am trying to build tabs using a matrix with a playa inside of it my basic code looks something like this. I did something like this inside before and works. does anyopne know what I am missing? ...
1
vote
0answers
193 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, DATE_FORMAT(...
1
vote
0answers
158 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
0answers
33 views

Get the current entry/template fieldtypes in a plug-in

I'm working on my first, more complex add-on and had a question on gathering field properties. If I create a tag pair, which wraps a field inside a template, what would it take to get the tag ...
1
vote
0answers
222 views

Using EE Templates in Custom Controllers Etc

I've gotten a custom controller set up in my EE install and I'm trying to use an EE template with the custom functions etc I need to use. <?php if (!defined('BASEPATH')) exit('This cannot be ...
1
vote
0answers
203 views

Template debugger not outputting information about add-ons

I have Template Debugging and Output Profiler turned on for my site, but i'm not seeing any debug information about my add-ons being used on the site. On any other site it would show what's happening ...
1
vote
0answers
67 views

Integrating forums into site templates?

Ive read the EE documentation, and utilized other "solutions" for getting the forum to work at segment 2, but nothing seems to work - all result in a server error 500 page. When set to default (...
1
vote
0answers
294 views

Channel field not showing on page with embedded template using Multi-Site Manager

I am using ExpressionEngine 2.5.2 with Multisite Manager. I have one template embedded within another. The parent template is pulling data from 2 sites, and I would like certain information to show up ...
0
votes
1answer
28 views

How to delete template variables, template partials, templates completely in EE5?

Templates, partials and template variables are automatically stored as files since EE4. But they are also stored in the database (in the tables exp_global_variables, exp_templates, exp_snippets - note ...
0
votes
0answers
12 views

Using stash:cache to set last-modified header

We're looking to start using CloudFront's updated method for determining cache expiration that relies on the response having an accurate last-modified header. We use stash:cache tags around the entire ...
0
votes
2answers
32 views

EE5 read from template files instead of database

I recently upgraded from EE2 to EE5. For my template groups and templates, I had a /templates folder that I used to save/load my templates. So the site read from that folder and not the database. In ...
0
votes
2answers
32 views

Display entry title inside an images

I'm sure this is a basic question (EE is not my bag): I am trying to create a fallback for an image's alt text where if the image does not have a description then to use the title of the entry in its ...
0
votes
0answers
16 views

Wyvern for EE2 stripping images inexplicably

I'm working on an older EE 2.11.9 site with Wyvern 1.8.0 uploading an image via the publish page works fine and you can see it in the editor. However on the front end the image tag is stripped out ...
0
votes
1answer
37 views

Issue with saving templates after upgrade

I have upgraded an EE 1.6.8 website all the way to the latest EE 5, but now I have a problem with saving templates. When I try to save a template after editing, the homepage shows up and the template ...
0
votes
1answer
21 views

Template class error in CP

Recently I upgraded an EE2 website to EE5. After upgrade, everything working very well except I am getting error while trying to edit/create a template from CP or from Template Manager -> Template ...
0
votes
2answers
63 views

Different content, different pages in global template

I am absolutely confused on what to do here I have a footer that is meant to be different on each page I setup, I want to edit the link, the image, the paragraph and the header tags to what I choose, ...
0
votes
1answer
50 views

EE4 Module Tab on Template Editor Page

Is there a way to add a tab on the publish form within the Template Manager like it is with the Channels? For example, the Template Manager has the default Edit, Notes, Settings and Access form tabs. ...
0
votes
1answer
91 views

How to upload/embed a MP3 file into expression engine?

Good afternoon. I am new to EE, and am trying to upload an MP3 audio file to our webpage. I am able to upload pics, PDF, etc..., but for some reason cannot figure out what to do for an MP3. Can ...
0
votes
1answer
61 views

Pull dynamic entries using Ajax template on multiple Structure entries with Relationships

I've created two separate Structure entries, both using the Page template below with Relationship entries. It works fine if I only want one page, but I've made a second page to pull different ...
0
votes
1answer
23 views

Can templates be filtered for text content?

One of our templates requires the word 'update' in the text copy, but whenever we edit it to add the word, on save we get "Error. The page you requested was not found." The same error happens when ...
0
votes
1answer
43 views

404 page going to listing entry template only in first segment

I can only trigger the 404 template for anything more than two segments, for example, if this is bad link I see 404 page: site.com/wrong/link When just accessing one segment like this for example, ...
0
votes
2answers
66 views

Create A Javascript Array from a Channel

Basically I need a javascript array built from a channel, but as we all know curly braces can be an issue, I was just wondering if there is a way to make a javascript array in an EE template. ...
0
votes
1answer
87 views

remove second segment in url for entry listings

Currently using {url_title_path='blog/blog-entry} for listing entries, but URL outputs /blog/blog-entry/listing-title. I'd like the URL to be /blog/listing-title. Can I do this using routes? What's ...
0
votes
1answer
78 views

Using a Channel Entry as an Embed Template

Is it possible to have Channel Entry as a text input be used dynamically to include a design template? In other words, something like: {exp:channel:entries channel="mychannel" limit="1"} {embed="...
0
votes
2answers
536 views

File Structure in EE

Just downloaded EE. Looking to use it for a project. I'm confused on there default file structure, I've found where my template lives... I'm just confused on all the other junk in the way. I would ...
0
votes
1answer
25 views

Stashing Entry Ids not working with get tag

I've got a stash set like this: {!-- retrieved at line 173--} {exp:stash:set name="st_featured_ids" type="snippet" parse_tags="yes"} {director_featured_spots backspace="1"}{...
0
votes
1answer
50 views

Want to display all but 1 category in channel entries loop

I would like to display all but 1 category in my channel entries loop. I tried doing category="not .." but it doesn't work. Here is my code {exp:channel:entries channel="lm_edit" sort="desc" category=...
0
votes
1answer
237 views

MSM Path Trouble in EE3

In EE2 there was the "Server path to site's templates" for each site in MSM. So it was possible to have two separated folder structures similar to: domain-A.tld (with whole ee system) /system /...
0
votes
1answer
45 views

Special Characters in Template Group Name (Chinese Characters)

We have a translated page in Chinese just so we can give the Chinese users a quick understanding in there language what the website is about. We want to display it here: domain.com/中文 Where 中文 = ...
0
votes
2answers
70 views

Total items from relationship field

I'm trying to wrap items in a ul if there are more than one, however I am getting the if always false, this is caused due to {feature_content:total_results} returning false. I end up with <h1>...
0
votes
1answer
82 views

EE3 Remove Template Group

I am trying to clean up my templates after an upgrade from EE2 to EE3. Everything I delete / remove keeps reappearing on next log-in. This includes some entire Template Groups and some individual ...
0
votes
1answer
67 views

Can't get total results for relationship field

I am trying to use count and total_results to detect the last item but total_results is not working in a relationship field. I can get the count and verify there are multiple entries but not the total....
0
votes
1answer
39 views

Customizing the default EE email layout

I am using EE's contact form {exp:email:contact_form} for user submitted queries on my site and would like to know if its possible to customize the layout of the email it sends? Currently I have ...
0
votes
1answer
36 views

Outputting a Matrix inside of a Playa field

I've found a couple other posts regarding same issue, but can't seem to resolve with any solutions out there. Everything is outputting fine except content in tag pair {studies_outline_block}, which ...
0
votes
0answers
26 views

Module Settings Column

I am creating a competition website. For the competition I am creating a custom module. The module has a cp backend where I want to be able to add some details about the competition. For example, ...
0
votes
0answers
41 views

In EE3 can I query the Model service for template info in my template's PHP?

I want to do something like: $templates = ee( "Model" )->get( "Template" )->all(); //Loop through them foreach( $templates as $template ) ... But when I try this, it hangs the page/server. Is ...
0
votes
1answer
59 views

EE Always Loading Site Default Template

I just did a DB upgrade from 2.4 to 2.10.1. And I switched my templates to save as files. And I am having issues where EE will always load the site default template index. I've removed Pages and ...
0
votes
1answer
24 views

Strong Tags inserted into Expression Engine

Over the weekend, one of my sites has "strong" tags inserted everywhere. I checked the templates, they are the same. Any idea how they could have gotten in there?