Developer forum

Forum » Development » Menu based on eCom groups

Menu based on eCom groups


Reply
Hi everybody,

I would like to generate a menu based on eCom-groups on four different pages. Here's the use-case

1) User selects parentgroup on a page in the DW backend
2) On the frontend, this page now shows a menu displaying all subgroups to the parentgorup
3) When clicking on a subgroup, all products in the group are displayed along with a menu displaying the subgroups to the selected group.

We need it to run on this site:
http://aida.dk/Aida2011/samlet-sortiment.aspx

The menu you see now is based on eCom-groups but it is not very dynamic, since we have manually added all the groups to be displayed in the menu by using the eCom-navigation feature on a page.

Please get back to me asap :-)

Replies

 
Nicolai Høeg Pedersen
Reply
Hi Bo

Have a look at this thread:
http://engage.dynamicweb-cms.com/Forum-5.aspx?action=ShowThread&ThreadID=2141

Also take a look at Childgroups and Subgroups loops in group template and productlist templates. (And the "no products found" template )
 
Reply
 Hi Nicolai.

We've done that allready, but we still can't get it to work.
For some reason the system changes randomly between Group-template and Product-template.

Furthermore the child-loop doesn't really output anything at all. If we use the subgroups-loop we do get an output, but the querystring with group-id is required. How do we autogenerate a menu that has this?
 
Nicolai Høeg Pedersen
Reply
No - it does not.

When you have no parameters in your qs, Dynamicweb will use either grouplist template or product templates based on your settings.

If groupid=asd is in querystring, it will use the productlist template if there are any products in that group, otherwise no products found template.

In both of them you can use childgroups or subgroups loop and have the subgroups.

Have a look at http://battle4.net.dynamicweb.dk/en-GB/Webshop.aspx and see how it can work. I've mailed you backend login so you can have a look.
 
Reply
Hey Nicolai.

We've tried various stuff, but it's really hard to figure out exactly what the different features of Dynamicweb do. Anyway, everything is almost as it should be now. We only have an issue with the menu-structure, which for some reason autogenerates links to samlet-sortiment.aspx for all product-lists.

Try to do the following:
1) Take a look at http://aida.dk/Aida2011/Samlet-sortiment.aspx?GroupID=GROUP57#samlet
2) Click on "Termo", "Borddækning" or "Kunst".
3) The topmenu works fine, but the submenu is autogenerated with the wrong URL. Samlet-sortiment.aspx is used for all the submenu-links. Why?

This doesn't give any problems with displaying the right information. The only problem it is giving us, it that it looks weird when the URL is always samlet-sortiment SEO-wise. Furthermore, it makes it impossible for us to mark the active menuitem.

Please get back asap.


 

You must be logged in to post in the forum