Page 1 of 1

[Solved] Smarty Error using "show_children_of"

Posted: Fri Dec 04, 2009 7:58 pm
by ITF
Hi Just installed CMS, no modifications yet, only changed theme to dz-bike. I'm using the latest CMS version "Bonde"
The only modules I installed in addition to defaults are:
cart made simple, payment made simple, and shop made simple.

I wanted to show children of certain parent in different part of the site.
I followed the instructions here: http://wiki.cmsmadesimple.org/index.php ... Ehierarchy

made a new template "show_children_of"

Code: Select all

<h2>Pages</h2>
<ul class="menu_horiz">
{if $count > 0}
{foreach from=$nodelist item=node}
{if $node->index == 0}
{assign var="icon" value="house"}
{elseif $node->haschildren == true }
{assign var="icon" value="folder"}
{elseif $node->haschildren == false }
{assign var="icon" value="page"}
{/if}
{if $node->index != 0}
<li style="list-style-image: url('/images/icons/{$icon}.png') ">
<a href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a><br />
{$node->titleattribute}</li>
{/if}
{/foreach}
{/if}
</ul>
and on the page template added:

Code: Select all

{cms_module module='menumanager' start_page="auto-shop" template='show_children_of'}
but on the website, I get this error:

Code: Select all

string(83) "Smarty error: unable to read resource: "module_db_tpl:MenuManager;show_children_of"" 

Anyone knows how to fix this or what I did wrong?

Thanks

Re: Smarty Error using "show_children_of"

Posted: Fri Dec 04, 2009 8:06 pm
by Rolf
Hi ITF
I wanted to show children of certain parent in different part of the site.
Is this perhaps what you are looking for?
http://wiki.cmsmadesimple.org/index.php ... rrent_page

You can also use the {menu} tag with some parameters for this, read the help function of the menumanager for more info.

Grtz. Rolf  :)

Re: Smarty Error using "show_children_of"

Posted: Fri Dec 04, 2009 8:11 pm
by ITF
Hi Rolf,

I fixed it, I created the "show_children_of" template in the wrong place.

Well, I want to show the children of this specific link on all pages of the site.
I read about the uses {menu} tag, but still have not understood what it all means. I just installed CMSMS literally few days ago, and still trying to get the hand of it all.

Thanks for you reply!!

Re: Smarty Error using "show_children_of"

Posted: Fri Dec 04, 2009 8:13 pm
by Rolf
yw, would you please put [solved] in the title of the first post?

Thanks and have fun with CMSMS,

Rolf  :D

Re: [Solved] Smarty Error using "show_children_of"

Posted: Fri Dec 04, 2009 8:29 pm
by ITF
Thanks :)