Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [template-layouts]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

Add more rows and columns to template

The container currently displays 4 entries. I need to show 28 entries. I tried duplicating the code but failed. I am a beginner coder with an HTML background. This is the page: https://www.symbiote....
0
votes
1answer
37 views

Setting a layout variable into channel form {custom_fields} loop is impossible and making an embed within this loop is not possible anymore in EE5

I re-code a website using DRY principles with layouts and layouts variables but I get stuck with this : Into a channel form I have to store each {field_name} into a {layout:set:append} so I can loop ...
0
votes
3answers
53 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 ...
1
vote
2answers
134 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 ...
0
votes
1answer
63 views

layout:set not working properly (EE 2.9)

Working with layout, have a problem: {layout="_global/layout_cat"} {exp:channel:entries channel="my_channel"} {layout:set name='htitle' value='{title} | some text'} Some text using the ...
0
votes
1answer
91 views

Front end member area

I am creating a site that is ONLY for members, does every template have to be wrapped in a {if logged_in} template {/if} {if logged_out} {redirect='login'} {/if} Is there a better and more flexible ...
0
votes
1answer
179 views

NSM Better Meta & Using EE Layouts

What is the propper way to use NSM better meta and layouts? At the moment, my layout has the NSM tag in the head, I've wrapped some channel entry tags around it. Not sure if this is the correct way ...
1
vote
1answer
58 views

Template layout question

Good afternoon! I’ve just “discovered” and started playing with layouts. So far, I love them! But I have one question: Some of my pages, include custom stylesheets: [code] [/code] I can’t quite ...
0
votes
1answer
41 views

if statements that can alter a layout

Im working on a project where there are two divs next too each other (not worried about the styling for now) but my question is the following. div 1 | div 2 if there's no channels fields in div ...
0
votes
1answer
68 views

layout:contents not showing up in nested template

I have three templates, simplified here for your digestion: First One: {layout="giving/.giving_meta"} <div class="row"> <div class="col-...
0
votes
1answer
56 views

Check existance of layout variable?

Is it possible to do something like the following (which doesn't work). {if layout:contents} {layout:contents} {if:else} 404! {/if} thanks! :: ed
0
votes
1answer
70 views

‘layout’ template missing content, but only sometimes

This is really foxing me. I've got a single 'layout' template that is called as a wrapper by all my other 'content' templates (i.e. {layout="layouts/_general_layout"}). Part of the layout template ...
2
votes
1answer
296 views

How to set default values for layout variables?

I'd like to set some default values for several layout variables, for when a particular template doesn't have a need to pass a specific variable to the parent layout. For example, I set my page's "...
1
vote
1answer
818 views

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

I'm trying to make sure I understand the scope of {layout:set} variables, compared to how embeds work. Traditionally, variables set with an {embed="template_group/template variable="foo"} are only ...
2
votes
1answer
90 views

Appending more data to a layout variable

I'm using template layouts, and setting variables with the {layout:set} tag. Is there a way to append data to an already set variable?
3
votes
1answer
255 views

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

It appears that when using the recommended method of {if no_results}{redirect=404}{/if} in a template that uses the template layout feature, it duplicates the layout, if a layout is also used on the ...
0
votes
2answers
331 views

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

Just starting to setup a new project, and using ExpressionEngine v2.8.x with its new Template Layouts functions. Problem is that if I have the CE Cache tags in the setup, and have set to dummy while I'...