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
Developer forum
E-mail notifications
Products ParentGroups
Rune Skovbo
Posted on 01/11/2011 10:26:00
Replies
Merethe Nielsen
Posted on 03/11/2011 20:56:34
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
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
Jonas Kæseler
Posted on 04/11/2011 08:17:44
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
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
Posted on 04/11/2011 08:55:14
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
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
Posted on 04/11/2011 11:04:42
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
I'm not excactly sure how :)
BR
Jonas
Rune Skovbo
Posted on 04/11/2011 11:47:22
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
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
Posted on 04/11/2011 11:51:14
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