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&...
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> {/...
  • 5,353
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 ...
  • 5,900
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: <...
  • 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 ...
  • 3,587
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/...

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