Using CGSimpleSmarty to grab the alias of the first active child

Thu. 15. March 2012 Snippets Goran Ilic
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}



Article was created by Goran Ilic

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


  • Twitter
  • Facebook
  • LinkedIn
  • LinkedIn
« Back to Articles

Comments

Categories

Archive

From Twitter

I love CMSMS

Designed and developed by idea arts. I do this! © Copyright 2010-2013

Go back to Top