The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
16 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. ...
0
votes
1answer
42 views

XML template 500 error with one category group

I"m setting up an xml template on an old site to use for importing to a new site via datagrab. Everything is working fine except when I try to output categories from one specific category group. When ...
0
votes
1answer
20 views

php template shows code in {}

I use php templates when I need to send notification emails to multiple people. Since upgrading to EE 2.10, I have noticed that when I echo the code, before the code that I am echoing, there is a ...
0
votes
2answers
34 views

blank lines in parsed templates where template tags / logic exists

I am noticing a lot of extra blank lines for the lines where my template logic exists. I notice this mostly when I'm building javascript. How do I go about preventing this? Example: <script> ...
0
votes
1answer
41 views

Stash Shortcodes - last one outputs “home”

EE 2.10.1 Stash 2.6.5 I'm trying to set up some shortcodes using Stash on a rebuild of my site where I formally was using MX Jumper to do the same thing. The code works fine except that the last ...
0
votes
1answer
32 views

If statement is rendering to screen

I am trying to check if a variable exists, and render it only if it does. Using the code below, the "{if facebook_content..." etc renders to the screen, curley braces and all, rather than actually ...
1
vote
1answer
36 views

Orderby title and organize by another custom field

I have a low search filter set up which works great however the client now wants to separate the results by country of origin. This should be possible as the country is set by another custom field. ...
0
votes
0answers
18 views

Module and plugin ‘dependencies’

Is it possible to make a module dependent on another module? This seems similar to this previous question but the answer to this is to re-instantiate the module whose function you want to use. My ...
0
votes
0answers
114 views

Channel Form and Matrix - not saving Data

I'm building out a multiple page channel form which was working fine until I got to where I need to use a Grid/Matrix field. I was unable to find documentation on how to customize the look of Grid so ...
1
vote
0answers
88 views

Complex nested playa relationships

I'm building a site where I'm having trouble wrapping my head around the logic needed to accomplish what I would like to do. I have three channels: Brands, Regions, Business Unit. Brands have a ...
4
votes
1answer
147 views

What is best practice for protecting templates saved as files?

I've just discovered that all of the templates I'm saving to the filesystem are accessible through the browser if the name is known, and now I've got a case of the screamin' heebie jeebies. For ...
0
votes
2answers
89 views

Pass first level categories to switchee case value

I need to pass a list of the first level of categories to a nested switchee. The following works when I manually place the nested list. However I would like the client to be able to add/edit ...
2
votes
2answers
281 views

Use array values in expressionengine template

SUMMARY: I need to access an element in an array that is passed to a template from a module and test for it's existence. I have a function in a module that looks like this: function subscriptions(){ ...
0
votes
0answers
51 views

Modifying / Removing a text link makes button inactive

I'm trying to modify this piece of code in my template so that I can remove the text that says to "download a module" but when I do, it breaks the "quiz button" link / makes the button inactive. ...
1
vote
1answer
40 views

Very close to working - var_prefix= tabbed and nested

This almost works. its just on load it does not display correctly (all the tab options stack instead nesting) but once you start clicking the tabs they all work fine. (Please also note that when built ...
0
votes
1answer
167 views

Nested html tabs and playa fields please help

I now want to create a second set of pill tabs based on a playa list called up within the first channel entry (called "nwt_2cd_order_location") I am using Zurb Foundation's mark up for responsive ...
0
votes
1answer
491 views

Flexslider and Grid - thumb does not match image

I've set up an Artist gallery on a site that I'm building using FlexSlider. It works great except that there's this really strange issue where the large image is not matched to the thumbnail ...
0
votes
3answers
98 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"} == ...
2
votes
1answer
119 views

exp:channel:month_links - need multi lingual output

I've got a multi lingual site powered by Transcribe and I've run into one area where I am unable to get both French and English to work. See the code below {exp:channel:month_links channel="blog" ...
2
votes
2answers
430 views

How to use global variables in if-condition?

Say I have a global variable foo. To output it in the templates, all I have to do is: <h1>{foo}</h1> However, I can't seem to use it in an if-condition. For example: {if foo == ...
3
votes
1answer
378 views

Low Variables & Grid outputting raw code

I'm working with the grid fieldtype for the first time and attempting to build out a home page slider the same way I would typically do with matrix and low variables. I have triple checked cell names ...
0
votes
1answer
299 views

Expression Engine PHP & Embed & entry_id_from

i have the following Line: {exp:channel:entries channel="orders" entry_id_from="{embed:LAST_ID}" sort="desc" dynamic="no"} LAST_ID file : <? include '!mysql.php'; $last_id = ...
1
vote
1answer
53 views

Matrix outputting cell names not content and only one row

Matrix 2.5.6 EE 2.6.1 I've got a matrix field that is behaving strangely. It only outputs one row despite having multiple rows added and then only outputs the cell names. I've copied and pasted the ...
0
votes
3answers
412 views

If logged in statement failing - template not parsing properly

I have an Expresso:Store site and I am using the following conditionals in the header: {exp:store:cart} {if no_items} <a href="{path='store/checkout'}">Your bag is empty</a> ...
1
vote
1answer
119 views

Display Description in Nested exp:file:entries Tag

Here is my template simplified for brevity {exp:structure:entries channel="iconGroup" limit="1" sort="asc" paginate="bottom"} <h1>{title}</h1> <div class="icon-grid"> ...
1
vote
2answers
364 views

changing the assigned template to Structure listing

Have inherited an EE build that uses Structure and has a handful of channels. There is 1 'page' type and 4 'listings'. Unfortunately, the dev has decided to use 1 template for the single entry views ...
0
votes
1answer
23 views

How to test for the entry_id of a related entry?

I need to do a check like this: {if:elseif {related_entries id="privacy"}{entry_id}{/related_entries} == 48} However, the template errors out when there is no related entry. How do I do this test ...
1
vote
3answers
258 views

How to tell if template is being accessed by mobile?

In the templates, is there a way to know what type of devices is accessing the site? I need to make certain decisions based on that (e.g. what kind of images to push). An "is_mobile" or "is_tablet" ...
0
votes
3answers
95 views

Can't Stash global and field errors in Safecracker form

I'm trying to capture in a variable Safecracker's global and field errors so I can display them outside of my Safecracker form. In my Safecracker form, I have the following: {if global_errors:count ...
0
votes
2answers
96 views

Parse Order of embeds that embed

Assume the following: Template A embeds Template B Template B embeds Template C Template C is a simple Channel entries loop that outputs a particular field value In the above setup, nothing is ...
1
vote
3answers
455 views

Stash - what is the scope of variables?

I'm trying to get a Channel entry made by a particular member id (there will always be just 1 entry) and store it in a Stash variable: {exp:channel:entries author_id="{segment_2}" ...
0
votes
2answers
317 views

How to encrypt/decrypt?

I'm displaying a list of Channel entries in a "search results" page. Each item has a link to a "details" page. Right now, my URLs look like this: domain.com/products/1/ domain.com/products/2/ ...
0
votes
0answers
150 views

Matrix search:cell=“foo” - if no results then display default copy

I'm trying to have a matrix field display a fallback row if there are no results from the search parameter. The field contains some copy that changes depending on the language of the site being ...
1
vote
1answer
45 views

Assigning a Value From One channel:entries Call To Be Used In Another

In my template I'd like to capture the entry_id of my main channel:entries loop, because I have subsequent loops where I may want to avoid that entry in one case, and invoke it again in another. So ...
5
votes
1answer
487 views

Conditional with category custom field, transcribe & low variables not working as expected

I'm building out a multi-language site using Transcribe which is coming along nicely. I'm having one issue with my navigation snippet (using low variables early parsing turned on). I've got the ...
3
votes
8answers
206 views

How to tell what page I am on inside a template?

Is there a variable I can use to determine that name of the template that is currently being accessed/displayed? For example, if I have a /pages/home/ template, inside the home template I'd like to ...
6
votes
5answers
1k views

How to strip white space in EE?

I'd like the rendered markup to be absent any carriage returns, line feeds, or tabs. I'm looking for a functionality similar to Smarty's {strip} tag. Does EE have this?
3
votes
2answers
110 views

Previous and Next tags with conditional to display pipe character

This is my template code {exp:channel:prev_entry channel="events"} <a href="{path='events/article'}" title="Previous Offer | {title}">PREVIOUS EVENT</a> {/exp:channel:prev_entry} ...
25
votes
5answers
1k views

What is parse order and how does it affect how my template is coded/rendered?

What exactly is parse order and how does it impact my template code and whether I should use embedded templates, global variables, snippets, low variables, stash or any other method that I may not ...