Webpage:
Products
> Cars
> Bikes
The code:
Code: Select all
{if cgsimple::has_children(cgsimple::get_root_alias()) == 1}
<div class="navheading">{cgsimple::get_root_alias()}</div>
{menu start_level="2"}
{/if}Code: Select all
{if cgsimple::has_children(cgsimple::get_root_alias()) == 1}
<div class="navheading">{cgsimple::get_root_alias()}</div>
{menu start_level="2"}
{/if}I don't fully understand the question:I use the following code in the sidebar. If the menu has children, the title of the parent page (or should be) and the menu are visible:
Do you mean that the current page has siblings? Like for example this page: http://tinyurl.com/khk6pn5If the menu has children
Code: Select all
{cgsimple::get_parent_alias($page_alias,'parent_alias')} {if !empty($parent_alias)}
<h2>{cgsimple::get_page_title($parent_alias)}</h2>
{menu start_level=2} {/if}Code: Select all
{cgsimple::get_parent_alias($page_alias,'parent_alias')} {if !empty($parent_alias)}
{menu start_page=$parent_alias}
{/if}Thanks a lot!velden wrote:Just edited my earlier post, not sure if you receive notification about that.
Code: Select all
<h2>{cgsimple::get_page_title(cgsimple::get_root_alias())}</h2>