5 votes
Accepted

Unexpected results when using {redirect=404} and template layouts

This is a known bug in EE 2.9.0: https://support.ellislab.com/bugs/detail/20471/site-index-template-is-rendered-after-the-404-template The fix from that thread: Open system/expressionengine/...
user avatar
  • 4,002
3 votes
Accepted

How to load different stylesheets depending on the template

The simplest and and most flexible way is to use Template Layouts. In your main HTML Layout wrapper (simplified) which we will say is named "_html-layout" in the "layouts" template group: <html&...
user avatar
3 votes
Accepted

How to set default values for layout variables?

The key here is in looking at the template engine order of operations. You can see that snippets are processed very early on. It also so happens that if you set a layout variable multiple times, it's ...
user avatar
  • 17.4k
2 votes
Accepted

Are {layout:set} variables available to all extended layouts?

From my own testing, the value set for the {layout:title} variable will cascade back through the layout templates to the outermost layout. So if you set it in a nested template or a template that ...
user avatar
2 votes

Appending more data to a layout variable

Unfortunately, for now, version 2.9, there isn't. But I suggest you to ask EllisLab for it. I guess isn't that hard to implement, but they are possibly busy because of the EECI Conf. This and an ...
user avatar
  • 6,108
2 votes

Front end member area

I have no idea what your actual setup is, but I general find that a best practice is to utilize embeds for control features as well as consistency. Here is an example: Two template groups, one call ...
user avatar
  • 5,900
2 votes
Accepted

if statements that can alter a layout

Assuming 2 fields firstname and lastname... <div class="{if lastname}half{if:else}full{/if}"> {firstname} </div> {if lastname} <div class="half"> {lastname} </div> {/...
user avatar
  • 5,353
1 vote

Accordion Feature Not Working

If you are not a developer, you need a developer's help. Here is what is going on: On the drop-down container elements, you have a class called visually-hidden, and the combo looks like this: <...
user avatar
  • 5,900
1 vote
Accepted

Template layout question

I do this by passing blocks of template content via layout variables. Thus you can put template specific content elements into a layout, but don't need to worry about doing any logic switching within ...
user avatar
  • 3,572
1 vote

CE Cache not working with ExpressionEngine v2.8 Template Layouts - any workarounds?

This has also been asked on the official support forum here: https://devot-ee.com/add-ons/support/ce-cache/viewthread/14051. This comment: https://devot-ee.com/add-ons/support/ce-cache/viewthread/...
user avatar
1 vote

CE Cache not working with ExpressionEngine v2.8 Template Layouts - any workarounds?

I've run into this before as well. The issue is that the layout:set action doesnt occur when the cached content is retrieved, so the parent layout has no way to know what it's contents should be. Have ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible