Products module - can't find $child_nodes

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
virtusrex
New Member
New Member
Posts: 4
Joined: Thu Jun 30, 2011 5:45 pm

Products module - can't find $child_nodes

Post by virtusrex »

Hello everybody,

I'm pretty new to CMSMS, and I've been doing the exercise from the following website : (http://www.packtpub.com/article/cms-mad ... ce-website) and I've run into a little problem I'm hoping someone might have a fix for.

Ok, I've install Products Module 2.13.1 and everything seems to be working except one part of the web tutorial that returns nothing.

Basically, when I create a Hierarchy template call Myshop with the following code:

{if isset($child_nodes) && count($child_nodes)}
{foreach from=$child_nodes item='node'}
<h3>
{if isset($node.downurl)}
<a href="{$node.downurl}
title="{$node.name}">{$node.name}</a>
{else}
{$node.name}
{/if}
</h3>
{if !empty($node.description)}
<div>{$node.description}
</div>
{/if}
{/foreach}
{/if}
<!-- This tag will be automatically added to the page content.
It uses the default summary template for products. -->
{Products hierarchyid=$hierarchy_item.id}

and run the Hierarchy Template as default it doesn't show anything.

Funny thing is the standard sample Hierarchy template works just fine.

Looks like $child_nodes variable is empty. Is there something I'm missing? I followed the instructions on the Products help file and setup all the permissions, why is $child_nodes variable empty?

Thanks,

S.
Post Reply

Return to “The Lounge”