I am a newbie to CMSMS but not to programming. I don't understanding why my if statement isn't working. I put the following code into a Global Content Block:
take control of your {menu_text}{if menu_text=='Home'}H!{/if}<strong>digital shelf space.</strong>
But I get the following on the page:
take control of your Homedigital shelf space
Why isn't the H! text displaying?
Thanks in advance for the help
[solved]If statement not functioning
[solved]If statement not functioning
Last edited by brook on Thu Mar 03, 2011 5:42 pm, edited 1 time in total.
Re: If statement not functioning
The menu_text etc. is not a cmsms function, if on a page you need {title} and {$page_alias} if menu_text were to work it would need $ in it...
Re: [Solved] If statement not functioning
Thanks for the guidance. The solution was to use alias:
{if $page_alias=="home"}H!{/if}
{if $page_alias=="home"}H!{/if}