Using CGSimpleSmarty to grab the alias of the first active child

This is a quick snippet shared by Robert (calguy1000) to get alias of first active child of a page.

{$cgsimple->get_children('',0,'children')}
{if is_array($children)}
  {if isset($children[0].alias)}
     {$children[0].alias}{* the alias of the first child... neat eh *}
 {/if}
{/if}

Comments