Questions related to the ExpressionEngine "templating" system.

learn more… | top users | synonyms

0
votes
1answer
27 views

Reason why site_url would work in template, but not current_url?

I have the following code using the {site_url} variable, like so: <div class="g-plusone" data-annotation="inline" data-width="300" data-href="{site_url}"> However, when I changed the variable ...
0
votes
2answers
23 views

Determine template from extension

Is there a good way to determine which page template was loaded for a given URI? I'd like to be able to use this information from an add-on. For example, if my root template group is home and the ...
0
votes
3answers
44 views

Is this how to redirect when using strict urls?

I've got a blog the url structure like this and strict urls's turned on. www.site.com/blog This lists all the blog entries www.site.com/blog/post/url_title This is the single entry page displaying ...
0
votes
1answer
23 views

Easy sitemap.xml url

I've been looking for an easy way to point search engines to the sitemap.xml file in the root of the website. I've been using Google Sitemap Lite in combination with Navee or Structure. And it's ...
0
votes
1answer
24 views

How do I pass a variable to mySQL without using the query module?

I can echo the current entry_id but when I try to pass that variable to a mySQL statement, it doesn't work. {exp:channel:entries channel="test" entry_id="20"} <?php $entry_id = '{entry_id}'; ...
0
votes
1answer
21 views

Template Caching - Blank Page

I am running into an odd error with a new EE site I am coding. I tried to turn on the template caching. When I load the page on the front-end website it works the first time but becomes blank on ...
0
votes
0answers
17 views

Plugin tags not being parsed properly when templates are set to be saved to the database and not files

I created my site by saving all templates to files. I read somehwere though that once the site goes live you should synchronise all of your files with the database and then turn off the ability to ...
2
votes
2answers
38 views

p-tags from RTE field getting stripped - but only after the first entry

So this is strange. Template code: {exp:channel:entries channel="[channel_name]"} {rich_text_field} {/exp:channel:entries} For the first entry, the text in the field will return wrapped with ...
1
vote
2answers
39 views

SEO meta - Multiple fallback options?

I've looked at SEO Lite and NSM Better Meta. These SEO addons come with 1 default fallback template. By "fallback" I am referring to fallback meta data that displays if there is no title, ...
0
votes
3answers
39 views

Get an EE instance without any output

I'm developing payment gateway for the BrilliantRetail and I need to create IPN callback script which will change BR orders statuses and return response data to the IPN-gateway. So I'm trying to find ...
0
votes
0answers
13 views

CartThrob Custom Report

What would be the best way to create a CartThrob Custom Report template that needs the following: All products: Including all Product Options (x axis, 1 per column) Days / Total of products sold per ...
0
votes
2answers
31 views

Is there a way to use global templates in expression engine?

By default, each template in expression engine is an entire template. Is there a way to set a global template, and have each template be inserted as the content section of that template? ie. ...
0
votes
3answers
36 views

Pre-Cache Template Base on URL

I am working on a site that has an employees channel with over 1000 entries. When a user visits the "all employees" page we are paginating the results and all is well, however when a user views the ...
1
vote
2answers
45 views

How to count Matrix rows that are not empty?

This seems like it should be a piece of cake, but I'm at a loss. I have a Matrix field called {the_matrix} which contains two columns {comment} and {image}. And I'm attempting to output the number ...
0
votes
1answer
24 views

Orderby Not Working

I have a channel field named {board_sort_order} and I limited the entry to Integer. I am trying to use that field to order the dynamic listing on the template. I have tried everything and search ALL ...
0
votes
1answer
19 views

Output segment_x via template HTML

Using EE 2.5.5, I wish to output a segment_x (segment_2, which aligns with our department names) so that I may class by department; i.e., <article class="main {segment_2}"> <more html ...
0
votes
1answer
47 views

how to make safecracker login form open in a new window/tab

I currently have a safecracker login form which enables specific users to login and download files. [click here][1] I have noticed when a user logs in they are redirected to the following link [click ...
0
votes
1answer
25 views

safecracker login form not accepting login details

I am fairly new to Safecracker, so forgive me if my question is stupid. On the following [site Click][1] Here when you click on the promo materials button, a pop up window appears requiring users to ...
0
votes
1answer
61 views

Playa Entries and Unique Identifiers

I'm displaying a list of Packages and within those Packages are Products. The Packages channel entry has a Playa field populated by Product channel entries. So to display them I have something like ...
0
votes
1answer
23 views

Synchronize Templates Show No file exists

(EE 2.5.5) All of a sudden making changes to the template files stopped getting inhaled into the app. The changes are on the server, but they're not showing up on the rendered pages. I'm guessing that ...
0
votes
2answers
56 views

PHP error on template export, after upgrading to 2.6

Getting the following when I try to export any template group... A PHP Error was encountered Severity: Notice Message: Undefined property: Design::$api Filename: cp/design.php Line Number: 3516 ...
3
votes
2answers
78 views

How to approach static content

I've been struggling with static content and wanted some other opinions on how to best approach it. Currently, I have a channel called Static Content where I, obviously, post all the "static" ...
1
vote
1answer
24 views

External Links Stored in Channel

In my navigation snippet I have some immutable external links and I just used a standard a tag with a hard-coded href attribute. No problems and it worked nicely. So I figured there was "no trick" to ...
2
votes
2answers
49 views

templates vs. themes

What's the difference between "templates" (default location system/expressionengine/templates/default_site/) and "themes" (default location themes/)? I'm curious particularly for a single site setup. ...
1
vote
1answer
24 views

Conditional Tags Based on EE Tag Value?

I am coding a plugin for our company's stock price. I am determining growth as such: public function __construct(){ $this->EE =& get_instance(); $fp = fopen ...
0
votes
1answer
77 views

Playa Reverse Relationship - not working

I've looked at this question which confirms that as far as I can tell that I am doing things correctly. I have two channels: Divisions and Zoo Visitor (members). In the zoo visitor channel I have a ...
1
vote
1answer
25 views

Save templates to file suddenly stopped working?

I have a clients site which has been working fine for a year or so, I have been doing a few updates to it over the last few days, now suddenly 'Saving Templates to File' has broken. If I make any ...
0
votes
1answer
32 views

Passing js file parameter in embed in ExpressionEngine

I am learning EE on the fly as I am creating our new corporate website in EE (at management's insistence) and I need to load different external js files depending on the template. I tried the approach ...
1
vote
1answer
34 views

Grab logged_in user info in PHP template and assign variables

can you help me writing this lines of code for grab in a EE template the information about a logged_in user, using php. I'm using Vanilla Forum, and i want to use the JsConnect to pass the logged_in ...
3
votes
1answer
95 views

Re-writing Playa tags to disable the Playa extension for better site performance

With the overall goal of reducing page load time (Memory, Execution Time in template debugging), how can I rework my Playa templates so as to “shut off” the Playa Extension? Template debugging shows ...
2
votes
1answer
27 views

Capturing post processed template into PHP variable

Is there a way to capture in PHP a post processed version of an embed? I have a footer embed template. There are 2 rendered states for the footer, user logged in and not. What I would like to do is ...
1
vote
3answers
34 views

Formatting a CSV using Channel Entries

I'm trying to export a CSV of my members using Solspace User. It works fine, except that when I open the CSV in Excel, it actually shows the quotes around the values. I know that obviously my ...
0
votes
0answers
9 views

Displaying Successive Entries on Successive Requests

I've got a products channel. Some of the products have a status of Wide, and these also have a sequence number. I don't know how many Wide products I have. On the home page I need to display two Wide ...
1
vote
1answer
24 views

Template Starter Files

I am looking for a starter kit just like the one of starterfiles.com. This domain name is not longer in use and doesn't provide the download file anymore. Is there any, not named EE, that why I can't ...
3
votes
4answers
48 views

Cannot change the template assigned to an entry item

I am working on a complex EE site (version 2.5.2) that I've been handed that has a large number of templates. I wish to customize the template for a specific entry. I have created a duplicate of the ...
0
votes
1answer
22 views

Freeform (Pro) and Multiple Site Manager

I just dropped my Freeform (Pro) form code into a template in a second site running on Multiple Site Manager. It's not rendering, and a peek in the Control Panel for site #2 shows no fields or forms. ...
1
vote
1answer
17 views

Get EE to respect SSI include

We have a legacy system slowly getting migrated to full EE. We call an SSI include from within one of the files used by both systems. The problem is, EE doesn't respect the SSI include and just ...
3
votes
1answer
82 views

Custom column creation for template and plugin

I have a homepage template that I manually change and there are rows with 3 columns each. Each column is a topic with entries. I wrote out some PHP to programmatically to create these rows and ...
0
votes
1answer
36 views

Assets 2 on MSM: Tags have no output on second site

I'm branching this off of another question: Assets 2 MSM Cannot Upload or view images I'm not seeing any tag output from Assets in the second site. I'm running EE 2.5.5 with Assets 2.0.5. This is a ...
1
vote
1answer
43 views

Different template for the same channel

Fairly new to ExpressionEngine. I'll try to briefly summarize what I'm trying to achieve since I haven't found any answers as of yet, which have properly worked. I have an image gallery template, ...
2
votes
2answers
21 views

JavaScript tag striped out from templates when editing from Admin

I am running ExpressionEngine 2.5.3. Happens something weird: when I save a template from the admin panel, javascript tags in it gets transformed from <script> to [removed]. I have checked file ...
3
votes
3answers
47 views

How do I stop sitemap.xml displaying instead of the /sitemap/index.php template?

I have a template_group/template like sitemap/index.php, in which I have a regular html site map for site visitors. I also have sitemap.xml in the root folder. visiting www.site.com/sitemap is ...
3
votes
2answers
46 views

Plugin development: How do you support date formatting in parse_variables?

I'm trying to support date formatting of a tag's output, per the Plugin Development & Template Class documentation. I have this code on the backend, with some redundancy on the timestamp value to ...
0
votes
1answer
42 views

How to Display an Entry's Category?

I'm on a single product entry page. The URL does not specify the category. In fact, the entry has 3 category groups associated with it. I want to display the first category assigned from each of the ...
0
votes
2answers
47 views

Stashing a structure variable and using it as a channel parameter

Here's the code i'm essentially trying to achieve {exp:stash:set="page_content"} {exp:channel:entries channel="photos" dynamaic="off" entry_id="{structure:child_ids_for:1}"} {!-- My Code ...
1
vote
3answers
63 views

How to inject inline HTML tags into the “Title” field

I'm in need of a solution to have this output: <h1>My Title <sup>&reg;</sup></h1> And in my template I have this: <h1>{title}</h1> I was thinking that I ...
1
vote
2answers
39 views

Cross-Referenced Relationships

While I wait for Playa to be approved for use in my project, I've put together this structure to enable cross-referencing: 3 Channels: products all_colors product_colors The all_colors channel ...
1
vote
2answers
33 views

Embeds with single page design?

I'm creating a single-page portfolio site using jquery scrollto and easing, etc. For ease of editing, I'm seriously considering creating each "Section" on the main page as its own template and then ...
0
votes
1answer
18 views

Embedded template channel entries tag inexplicably breaking in some host templates

I've got an embedded template called _sidebar that contains (surprise surprise) the site's sidebar content. It contains a heading and a channel:entries tag, all wrapped in a container div. In some ...
1
vote
1answer
38 views

Cannot user php in Playa tags

So I'm running into a issue and I'm completely stuck. I'm trying to use Php in the playa tags to get my associations. But, no matter what I do, I always get a mysql error, as if the php variable isn't ...

1 2 3 4