Using CGSimpleSmarty to grab the alias of the first active child
Thu. 15. March 2012 Snippets Goran Ilic
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}
Article was created by Goran Ilic
Goran Ilic is a designer, allrounder, husband, father, and founder of I do this blog.
After long search for a perfect tool for his clients he has found CMSMS and devoted his passion to it.
Visit Goran Ilic's Website
« Back to Articles
Comments