Products hierarchy by menutext?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
angelpeace
Forum Members
Forum Members
Posts: 39
Joined: Fri May 15, 2009 9:45 am

Products hierarchy by menutext?

Post by angelpeace »

My version:
$CMS_VERSION = "1.11.4";
$CMS_VERSION_NAME = "Fernandina";
$CMS_SCHEMA_VERSION = "36";

I Have a menu page:

+ ListProduct1
+ ListProduct2
+ ListProduct3
...

And I have a Hierarchy as same as:

+ ListProduct1
+ ListProduct2
+ ListProduct3
...

Now, I couldn't Get {Products hierarchy=[menutext][raw_menutext]...}

Help me plz...
Thanks.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Products hierarchy by menutext?

Post by Dr.CSS »

You might have to explain this in more detail, what you are doing and what you expect to see...
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Products hierarchy by menutext?

Post by calguy1000 »

If you want to call the Products modules from within each of your content pages, and want to have the hierarchy already set by the menu text of the current page:

{Products hierarchy={menu_text}}

should work... or be close.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
angelpeace
Forum Members
Forum Members
Posts: 39
Joined: Fri May 15, 2009 9:45 am

Re: Products hierarchy by menutext?

Post by angelpeace »

Thanks calguy1000,
I had done!
User avatar
angelpeace
Forum Members
Forum Members
Posts: 39
Joined: Fri May 15, 2009 9:45 am

Re: Products hierarchy by menutext?

Post by angelpeace »

Hi calguy1000,
In Menu Manager, I have a Custom MenuTemplate:

{if $count > 0}
{foreach from=$nodelist item=node}
...
<h1>{$node->menutext}</h1>
...
<content>
{Products hierarchy=$node->menutext}
</content>
{/foreach}
{/if}

It's not result List Products [hierarchy=$node->menutext]
How i can do,
Thanks!
User avatar
angelpeace
Forum Members
Forum Members
Posts: 39
Joined: Fri May 15, 2009 9:45 am

Re: Products hierarchy by menutext?

Post by angelpeace »

{Products hierarchy=$node->raw_menutext}
...is OK
User avatar
angelpeace
Forum Members
Forum Members
Posts: 39
Joined: Fri May 15, 2009 9:45 am

Re: Products hierarchy by menutext?

Post by angelpeace »

{Products hierarchy=$node->raw_menutext}
...is OK
But
{Products hierarchy="{$node->raw_menutext}*"}
...is not OK

Home >> Parent >> Children_1 >> Children_2 >> Children 3

I Call {Products hierarchy=Parent*} --> Not Result
I Call {Products hierarchy=Children_1*} --> Not Result
I Call {Products hierarchy=Children_2*} --> Result
Post Reply

Return to “Modules/Add-Ons”