New answers tagged

0 votes

Template variables conditions

Where is {site_logo_path} coming from? Is it a layout variable? {layout:set name="site_logo_path"}/some/path/file.png{/layout:set} If so you would use in your if statement: {layout:...
Dang Good's user avatar
-1 votes

Embedded template variables and conditionals?

If you are chaining templates (that's what it sounds like at least) these days you can usually avoid the need to use {embed} constructs much of the time through the use of Layout Variables. Based on ...
JCOGS Design's user avatar
  • 3,585
2 votes

Embedded template variables and conditionals?

I think your problem is that you're not using the correct variable name in the conditional. When you send a variable in an embed, the variable on the other end is {embed:variable_name}, not {...
Jason Boothman's user avatar
-1 votes

Embedded template variables and conditionals?

Why don't you just test the embed variable? {!-- PAGE TEMPLATE --} {exp:stash:set name="stashVar"}{var1}{/exp:stash:set} {embed="group/template" stashVar="{exp:stash:get name='...
Dang Good's user avatar
0 votes

Template variables conditions

Does your {site_logo_path} is a normal variable or it come from a layout:set? Did you try {if !site_logo_path} ?
Benoit L's user avatar
  • 554

Top 50 recent answers are included