Questions tagged [layout-variables]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
52 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 ...
1
vote
1answer
62 views

When should I use the embed tag over the dynamic/template tags?

Since Layout templates are so handy (cutting the template into interchangeable header/sidebar/footer, etc), why should our use an embed tag? Any ideas on when you should not use an embed tag over a ...
1
vote
1answer
55 views

Some general EE questions [closed]

Some random questions from a EE newb... 1.) a.) Since Layout templates are so handy (cutting the template into interchangeable header/sidebar/footer, etc), why should our use an embed tag? Any ...
0
votes
1answer
71 views

If statement when layout variable contains whitespace

I'm using an if statement in a layout to check if a layout variable contains any content. {if layout:sidebar} <div class="sidebar"> {layout:sidebar} </div> {/if} This works well ...
1
vote
1answer
63 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
40 views

Entry Layout Plugin issue with Stucture

In a channel, I've removed the Structure tab, but there's no way to get it back. Or at least, I'm missing it. The tab is gone, but all fields that were in it too and they're not in the Fields list. ...
0
votes
1answer
57 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
2
votes
1answer
317 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 "...