Developer forum

Forum » Ecommerce - Standard features » Products ParentGroups

Products ParentGroups

Rune Skovbo
Reply
Hi there

I need to show a group and its subgroups - no problem using the loop: Childgroups.

Then i click on a subgroup and now I want to show its parent group and the other subgroup.

"shouldn't" there be a loop called Parentgroups?

How can I achive this?


Hope you can help.

/Rune


Replies

 
Merethe Nielsen
Reply
Hi

I'm sorry. We don't have a Parentgroup loop. It's a feature request.

Have you tried Subgroups loop combined with the Childgroups loop?
(Documentation: http://templates.dynamicweb-cms.com/Default.aspx?ID=13823)
And use the Ecom:Group.Name tag outside the loops?

I have attached 2 test templates (I'm sorry for the messy code), that uses the 2 loops.
Two images shows my grouplist, and when I click the A Group, then I get the productlist with the groupname (A) and the subgroups.

Maybe you can use some of that code?

/Merethe
grouplist.png productlist.png
 
Jonas Kæseler
Reply
Hi,

Depending on the layout of the page you might be able to use a navigation with ecom-groups attached, like a breadcrumb path. You need some work in the XSLT though.

Jonas

 
Rune Skovbo
Reply
Hi again

Yeah I think some sort of XSLT may be the way to go - not my strong suit though :-(

The problem can be seen here: http://rask-cykler.net.dynamicweb-cms.com/Rask-cykler/Cykler/Mountainbikes.aspx

Works as intended on the first page, but when I choose a subgroup the problem is clear -  I can no longer navigate to the other subgroups.

@Merethe: I don't think these templates will help as its the parent group and siplinggroups I can't show.

Am I overlooking something?

/Rune

 
Jonas Kæseler
Reply
I think the navigation approach will work. Selecting the right nodes from the navigation-xml should give you what you want.
I'm not excactly sure how :)

BR
Jonas

 
Rune Skovbo
Reply
Yeah, thats what im looking at also. Unfortunately I can't implement the navigation on paragraph level (can I?).
I was also thinking of doing some kind of sitemap with the breadcrumb.xslt and inPath, but can't get it to work.

All pointers appreciated :-)

/Rune

 
Jonas Kæseler
Reply
No, you can't implement it on a paragraph. But you could build it in the pagetemplate and move it into the paragraph by javascript. Not the sweetest solution, but it works.

 

You must be logged in to post in the forum