For instance, my Navigator template looks something like this:
Code: Select all
{if isset($nodes)}
{foreach $nodes as $node}
<tr
{fetch file="{$node->url}"}
</tr>
{/foreach}
{/if}
TIA,
Sanjay
Code: Select all
{if isset($nodes)}
{foreach $nodes as $node}
<tr
{fetch file="{$node->url}"}
</tr>
{/foreach}
{/if}
Code: Select all
$page_id = !empty($params['page_id']) ? $params['page_id'] : null;
$hm = CmsApp::get_instance()->GetHierarchyManager();
$node = $hm->sureGetNodeByAlias($page_id);
$content_obj = $node->GetContent(TRUE);
$template_id = (int) $content_obj->TemplateId();
$template = CmsLayoutTemplate::load($template_id);
$template_name = $template->get_name();
return $template_name;
Code: Select all
{assign var='root_template' value=$smarty.template scope='global'}
http://www.smarty.net/docs/en/language.variables.tplspcherub wrote:On a related note, is there a list of all the information contained with the $smarty object (especially CMSMS related)?