Developer forum

Forum » Templates » Loop product groups

Loop product groups


Reply

Hello,

Currently I'm working on a website with the use of design templates.
I want on every page a list of the webshops product groups.

In the documentation I found this:

    <!--@LoopStart(ProductGroups)-->
        <!--@Ecom:Group.Name-->
    <!--@LoopEnd(ProductGroups)-->

But this isn't showing the product groups.

Is there an other way for showing te groups on every page or am I doing something wrong?

Best Regards,
Roy


Replies

 
Reply

Hi Roy,

You can make eCom groups part of your navigation system. Take a look at this thread for some ideas and style sheets:
http://engage.dynamicweb-cms.com/Forum-5.aspx?PID=34&action=ShowThread&ThreadID=2141

Hope this helps,

Imar

 
Reply
Thank you, that dit the trick!

Does this mean that I have to set the eCom groups navigtion setting on every (new created) page?

I tested it with a parentid in the setting of the template.
 
Reply
If you want to be able to control it for each page individually, then yes, you need to assign it to each page where you want the groups to appear. Alternatively, you can use a hidden page and set it up once. For example:

- HiddenPages (Id=3)
    - EcomMenu (Id=4)

If you assign the eCom groups using the navigation setting to the EcomMenu page, you can use parentid=3 (the parent of the EcomMenu page) to show the groups, like this:

<ul class="dwnavigation" id="leftnav" settings="startlevel:1;endlevel:4;template:LeftNavigationEcomAny.xslt;parentid=3"></ul>

Hope this helps,

Imar

 
Reply
Thanks Imar, got it working now!
 
Reply
Currently I'm using the LeftNavigationEcomAny.xml and this works fine!

Only the website has multiple languages (Dutch and German) and the LeftNavigationEcomAny.xml is showing all the product groups.
Even the translated groups are showed double.

Is there an way to filter on the curreant AreaID?
I've tried to add a IF TEST on the @AreaID, but this is only showing the current AreaID.
Also the GroupLanguageID from the database is nog showing the Group language to set an filter on.

 

You must be logged in to post in the forum