[Solved] Smarty Error using "show_children_of"

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
ITF
Forum Members
Forum Members
Posts: 22
Joined: Thu Dec 03, 2009 1:55 am

[Solved] Smarty Error using "show_children_of"

Post 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
Last edited by ITF on Fri Dec 04, 2009 8:29 pm, edited 1 time in total.
---------------------------------------------------------
ITF - "I understand now. The circumstances of ones birth are irrelevant. It is what you do with the gift of life that determines who you are."
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Smarty Error using "show_children_of"

Post 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  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
ITF
Forum Members
Forum Members
Posts: 22
Joined: Thu Dec 03, 2009 1:55 am

Re: Smarty Error using "show_children_of"

Post 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!!
---------------------------------------------------------
ITF - "I understand now. The circumstances of ones birth are irrelevant. It is what you do with the gift of life that determines who you are."
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Smarty Error using "show_children_of"

Post by Rolf »

yw, would you please put [solved] in the title of the first post?

Thanks and have fun with CMSMS,

Rolf  :D
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
ITF
Forum Members
Forum Members
Posts: 22
Joined: Thu Dec 03, 2009 1:55 am

Re: [Solved] Smarty Error using "show_children_of"

Post by ITF »

Thanks :)
---------------------------------------------------------
ITF - "I understand now. The circumstances of ones birth are irrelevant. It is what you do with the gift of life that determines who you are."
Post Reply

Return to “CMSMS Core”