Questions tagged [templates]
Questions related to the ExpressionEngine "templating" system.
81
questions with no upvoted or accepted answers
7
votes
1
answer
369
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
2
answers
237
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
0
answers
212
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
0
answers
57
views
Strange Maps output
I'm having trouble getting Maps to display the map correctly in my template. The basic template setup is like this:
{stash:embed name="layouts:global"}
{exp:channel:entries channel="{...
1
vote
0
answers
33
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
0
answers
95
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
0
answers
87
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
0
answers
253
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
1
answer
156
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
1
answer
60
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
1
answer
1k
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
1
answer
46
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
0
answers
110
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
0
answers
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
0
answers
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
0
answers
162
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
0
answers
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
0
answers
224
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
0
answers
207
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
0
answers
69
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
0
answers
300
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
0
answers
50
views
After upgrading 5.4 -> 6: Error »Attempt to read property "group_name" on null«
after upgrading from 5.4.2 to 6.0.6 in the CP I get the error
Warning Attempt to read property "group_name" on null
ee/ExpressionEngine/Model/Template/Template.php, line 118
Severity: ...
0
votes
0
answers
25
views
Cloned ee2 site not working due to "undefined variable: templateGroup"
This is an EE2 site that I have cloned from production. I've copied all files and cloned the backing database. I'm able to enter the control panel and most things appear to be working.
However, when I ...
0
votes
1
answer
26
views
Error message when trying to open layout template
My other templates open fine from the EE backend, but when I try to open my layout template I get the following message:
Call to a member function getId() on null in [path]/ee/EllisLab/...
0
votes
1
answer
58
views
How can i use json data in a template that i want to convert using angular2react package. I want to make it dynamic but template is static
I want to take json data and put it in my template. Actually i am using angular2react package to use angularjs code in my reactjs project
This is my component:
const component= {
template :<...
0
votes
2
answers
31
views
How to dynamically output all products within a category on a dynamically created category page?
I'm building a site that has two main channels:
Product (this describes a meat, cheese or milk product). The user can then create entries describing the product, then categorise this product as '...
0
votes
0
answers
65
views
Disable Emojis from being rendered
I have a page in which I'd like to put a Sharepoint link, unfortunately the link contains :x: (https://mysharepoint....sharepoint.com/:x:/s/....) and EE is rendering the :x: as ❌, in view ...
0
votes
1
answer
66
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
2
answers
142
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
2
answers
67
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
1
answer
56
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
1
answer
26
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
2
answers
82
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
1
answer
162
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
1
answer
148
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
1
answer
73
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
1
answer
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
1
answer
50
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
2
answers
70
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
1
answer
106
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
1
answer
126
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
3
answers
788
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
1
answer
26
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
1
answer
57
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
1
answer
357
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
1
answer
53
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
2
answers
82
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
1
answer
110
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
1
answer
104
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
1
answer
43
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 ...