I have a conditional (using custom tags that I found in this wonderful forum to get the page alias and position in hierarchy) that looks like so:
{if $root_page_hierarchy == '1'}
{content}
{else}
{global_content name='category_'$root_page_alias}
{/if}
And of course, it's not working. If I place the "$root_page_alias" within the quotes, then it *literally* looks for "$root_page_alias". Outside the quotes, it completely ignores it. Either way, it tosses out an error because it can't find that content block.
I know if I were writing this as PHP it would be:
if ($root_page_hierarchy == '1')
echo $content;
} else {
echo 'category_' . $root_page_alias;
}
and the last part would echo out (saying the page I'm on is "shoes") 'category_shoes'.
Is there a way to do this using the Smarty tags? I just can't seem to get it to recognize the $root_page_alias as part of the name I want. Thanks so much for any pointers you can pass!

