Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [layout-variables]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
62 views

Template Dynamic Variables

I do not know how to program in PHP, but I am trying to understand how I can set dynamic variables in templates. For example, if I use the query tag, how can I create a few dynamic variables that i ...
Jeff's user avatar
  • 113
0 votes
1 answer
59 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 ...
pikarge's user avatar
  • 43
1 vote
1 answer
65 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 ...
Greg's user avatar
  • 83
1 vote
1 answer
58 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 ...
Greg's user avatar
  • 83
0 votes
1 answer
82 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 ...
Divey's user avatar
  • 101
1 vote
1 answer
69 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 ...
Jake Covert's user avatar
0 votes
1 answer
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. ...
Rien's user avatar
  • 71
0 votes
1 answer
64 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
smirny's user avatar
  • 3
2 votes
1 answer
344 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 "...
Derek Hogue's user avatar
  • 17.4k