I'm trying to understand syntax for the cgsimplesmarty plugin, what I want is for a block to appear if the user is in a specific page, or any of its children. I've gotten halfway there, I think, but I'm not sure I understand the aliases and syntax correctly enough to bring it on home... (and I think I stumbled on a glitch between getting title or alias)
Here's what I've got so far:
Code: Select all
{$cgsimple->get_page_title('Starting out',$assign)} <br/>
{$assign}
// not fulling understanding how to set the variable and then use it
{$cgsimple->get_page_title($cgsimple->get_parent_alias(), 'maintitle')}
<br/>
{$maintitle2}
here? {$the_current_page} <br/>
{if $maintitle == "Starting out"}
.. {content block = "Sidebar"} ..
// this works great for the subpages, but not the parent.
{/if}


