check_greatgrandparent($name, $breadcrumbs)

check_greatgrandparent function returns the

Syntax:

{$archive->check_greatgrandparent($name, $breadcrumbs)}
Parameter Default Value Description Sample Value
$name n/a String - name of the section News 
$breadcrumbs n/a see $breadcrumbs see $breadcrumbs

Sample Usage:

{if $archive->check_greatgrandparent("Careers", $breadcrumbs)}
<h2>Your in Career Section</h2>
{elseif $archive->check_greatgrandparent("News", $breadcrumbs)}
<h2>Your in News Section</h2>
{else}
<h2>Your in Homepage Section</h2>
{/if}

Sample Output:

<!--if check_greatgrandparent is Careers -->
<h2>Your in Career Section</h2>
<!--else if check_greatgrandparent is News -->
<h2>Your in News Section</h2>
<!--else if check_grandparent return False -->
<h2>Your in Homepage Section</h2>