Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [templates]

Questions related to the ExpressionEngine "templating" system.

0
votes
2answers
24 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
10 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
30 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 ...
1
vote
1answer
44 views

Transcribe for EE2 - export all variables?

I have an older EE2 site that will be rebuilt and not upgraded. There are almost 150 translations in the Transcribe module. Is there an easy way to export via db query or template code a list of ...
0
votes
1answer
19 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
27 views

Defining variables inside a template in EE 2.10.1

I can't find a way to define a variable in a EE 2.10.1 Template file. I need to define a variable gv_desc only in some templates. There are some references but no one works: {global_var:gv_desc="bla ...
-1
votes
3answers
42 views

Accordion Feature Not Working [closed]

Hello—the dropdown accordion feature on this linked landing page on our site is not working. When you click the dropdown button, the accordion feature only stays open for a split second. This is a new ...
0
votes
1answer
12 views

Settings in Admin get dropped, will save temporarily, hours later are reset/gone

I have a situation on my development site, where all of a sudden lately, some things I save in the admin, aren't "sticking" around. Some of the settings that won't stay: Template routes: I will set ...
-1
votes
1answer
35 views

Channel entries vs embed files

I’m having sort of a dilemma and since I never actually used channels in EE (yes, that is strange) except for a blog section I was curious what the real benefit is. I just don’t see it. Let me make ...
2
votes
2answers
64 views

How can I sort entries by ascending integers?

I am trying to use a custom field sort_order to order entries by setting the Field Content type of a Text Input to Integer. I'm using EE2. Expected behavior: Entry 1 with a sort_order of 10 Entry 2 ...
0
votes
2answers
52 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
45 views

Changing paths to directories in EE4

Specifically the Templates directory and Add-ons. How do I do it? Doesn't seem to be working in the config file like in Version 2. Cheers!
0
votes
0answers
38 views

Template Routes vs Switchee in EE v4

I have several EE websites and since v2 I have been using Switchee to use a single template and "switch" between: pagination, category, single layouts. I have asked EllisLab and they say switchee ...
0
votes
0answers
21 views

Optimising conditional options within menus in a structured search UI

I have a project where products will be categorised across 5 category groups. Each category group will have between 3 and 12 categories. On the front end each category group will be expressed as a ...
0
votes
0answers
79 views

Cookie setting within a conditional not working as expected

{if "{exp:cookie:get name='test'}" == ''} {exp:cookie:set name="test" value="a" expire="1209600"} Here1 {if:else} {exp:cookie:set name="test" value="b" expire="1209600"} Here2 {/if} ...
0
votes
1answer
26 views

Insert Selected Channel into the Template

We are creating a template that our client would use on many pages of their website, for example 'Accordion Layout Template'. So we create a page 'Bikes', assign the 'Accordion Layout Template', then ...
2
votes
1answer
53 views

How to detect an AJAX request in a EE4 template?

What's the best practive to detect an AJAX request in EE4 without activating PHP in the template? With the previous version of EE, I used the Ajax Detect Conditional ({if ajax}, {if not_ajax}) from ...
1
vote
1answer
29 views

Is it possible to use an extension in a template like a plugin?

I built an extension which works fine and I'm trying to make it work in my template but I don't know how to do and actually, I don't even know if it could work. My code looks like: class ...
0
votes
0answers
21 views

How can I retrieve different random entries from an embedded template multiple times on the same page?

I'm using the following template as an embed: {exp:channel:entries channel="articles" dynamic="no" orderby="random" limit="1" cache="no" disable="member_data|categories|pagination"} {title} {/exp:...
0
votes
1answer
36 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. ...
-1
votes
1answer
27 views

Making certain templates only show for certain authors

Want to know how to make sure a template only gets used when we want it Our main article template for our columns runs ads I need a template that has no ads for one of our authors. How do I ensure ...
1
vote
2answers
83 views

General error when trying to access templates

Running EE 3.5.12 In the process of creating a number of new templates I suddenly got the following error: SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\xD5ve fo...' for column '...
1
vote
1answer
116 views

EE 4.0.4 - Save Templates as Files

User guide states: Set Template Preferences From the Control Panel, go to Settings ‣ Template Settings. Set Save Templates as Files to Yes. but there is no such setting on the template settings ...
1
vote
0answers
25 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
1answer
87 views

Stripping line breaks from a template

I'm working on two templates which use the same snippet for outputting data. One is a HTML template which displays a table, the other forces the download of a CSV. With some conditionals I've set up ...
0
votes
1answer
58 views

How to get around pagination URLs

Does anyone have a neat solution to using pagination URLs? I would like to set up a simple structure like articles/article-entry with the listing and entry in one template. But once I include ...
1
vote
0answers
53 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 ...
0
votes
1answer
30 views

How do you stop the “category path” being put in URL's generated by {path=}

ExpressionEngine 3.5.10. I am outputting a specific list of categories (category_group="1") from a channel of training courses (channel="training"). Followed by the list of courses assigned to that ...
1
vote
0answers
58 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 ...
0
votes
1answer
87 views

What's the field for the main content for XML export?

I found this snippet of XML code (http://www.phpdevtips.com/2011/08/how-to-import-an-expressionengine-blog-into-wordpress/) that has everything set up for the XML export of one of my client's old site....
0
votes
1answer
77 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
26 views

Blank page output when using Entry Status in nested Switchee statement

I am trying to use a nested Switchee statement to display an embedded template but the results are a blank page. Using default status group and EE 2.11.5. I feel like I am missing something basic here....
1
vote
1answer
75 views

Redirect due to “malicious or dangerous” code

All my efforts at "view rendered" are met with "Error: The link you are being redirected to contained some potentially malicious or dangerous code. We recommend you hit the back button and email [my ...
0
votes
1answer
127 views

Category page and Article. How?

EDIT!!! It's not about categories, it's about addresses and templates. I need to get 2 types of pages: site.com/sport/football/ — page with lots of entry site.com/sport/football/realmadrid — page ...
1
vote
2answers
90 views

how do I output am EE html template as a json file [duplicate]

how do I output am EE html template as a json file so it validates? Error:Invalid media type, expecting application/json. I have tried enabling php to my template and adding the following code after ...
0
votes
1answer
56 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 ...
2
votes
2answers
101 views

How to load different stylesheets depending on the template

Right now I have an includes.group, that holds different templates that I load. Such as the nav, head, footer etc. As of right now the head holds all of my style sheets for every template. But I ...
2
votes
0answers
146 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 ...
3
votes
1answer
58 views

MSM - Template on site 1 and I want different url on site 2 to goto that template

I need help with Multi Site Manager - running on EE2: All templates are on on Site 1. So for example one template is "promotions/index" -> showing as "/promotions" naturally. On Site 2 I want the ...
1
vote
2answers
69 views

What fetch_template() really means?

Could you tell me please, what fetch_template() really means in ExpressionEngine? Debugger shows me an info like below and not only for ".head" template but for a few more templates. 0.0003s 1....
2
votes
1answer
49 views

Using Playa passing values

I am trying the following with no luck <?php $category = "{exp:cat2:id category_url_title='{segment_4}'}"; ?> {exp:playa:parents channel="article|blogs|calendar_events|contests|podcasts|videos" ...
0
votes
1answer
21 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 ...
1
vote
1answer
46 views

convert segments from archive url to date variable and use in template

Trying to grab the month and year from URL on an archive page (i.e /blog/2017/02) and convert to a date variable and display as such in template "February, 2017." Using EE3. Open to add-on or out of ...
0
votes
1answer
35 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, ...
-2
votes
1answer
29 views

Page Reloads to Home Page After Opening Browser

This is the strangest thing I've ever seen. If I load my homepage (jonssite.com), then click on a sub link, (jonssite.com/about), it shows "jonssite.com/about" for a second, and then redirects to "...
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
79 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
36 views

I need help finding a page

Alright, I will start by saying that I'm very new to this and will not be using the most technical terminology.... I am helping with a project that someone else left. She created a web page, and I'm ...
0
votes
1answer
271 views

Parameter and Dynamic Variables

Being an EE novice, I'm struggling to understand Parameter and Dynamic Variables. Yes...I gone over the documentation..MANY times. I'm still fuzzy on it. For example, if I want to make a webpage ...
0
votes
1answer
67 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="...