Code: Select all
{if !empty($node->image)}{else}<img src="{$node->image}" />{/if}
Code: Select all
{if !empty($node->image)}{else}<img src="{$node->image}" />{/if}
Code: Select all
...
{menu}
...
Code: Select all
...
{if $count > 0}
<ul>
{foreach from=$nodelist item=node}
<!-- {$node|print_r} -->
{if $node->depth > $node->prevdepth}
...
Code: Select all
...<!-- stdClass Object
(
[id] => 15
[pagetitle] => Home
[url] => http://[removed]/cmsms1x/
[accesskey] => 1
[type] => content
[tabindex] =>
[titleattribute] => Home Page, shortcut key=1
[modified] => 1456845337
[created] => 1153855351
[hierarchy] => 1
[haschildren] =>
[default] => 1
[depth] => 1
[prevdepth] => 1
[children_exist] =>
[menutext] => Home
[raw_menutext] => Home
[target] =>
[index] => 0
[alias] => home
[parent] =>
[extra1] => extra 1 value
[extra2] => extra 2 value
[extra3] => extra 3 value
[image] => http://[removed]/cmsms1x/uploads/images/logo1.gif
[thumbnail] => http://[removed]/cmsms1x/uploads/images/thumb_logo1.gif
[current] => 1
[first] => 1
)
1 -->
...
Code: Select all
<!--
stdClass Object
(
[id] => 15
[pagetitle] => Home
[url] => http://[removed]/cmsms1x/
[accesskey] => 1
[type] => content
[tabindex] =>
[titleattribute] => Home Page, shortcut key=1
[modified] => 1456845337
[created] => 1153855351
[hierarchy] => 1
[haschildren] =>
[default] => 1
[depth] => 1
[prevdepth] => 1
[children_exist] =>
[menutext] => Home
[raw_menutext] => Home
[target] =>
[index] => 0
[alias] => home
[parent] =>
[current] => 1
[first] => 1
)
1 -->