Developer forum

Forum » Feature requests » Product primary group

Product primary group

Morten Fink Eriksen
Reply
I would advocate the need to be able to specify a primary group for product. If we add a product to more than one group, but want one unique path to the product (since this is generally what you always want SEO wise anyways).

Is there any way of doing this today without the need to specify a customfield for holding a groupid on a product?

Im really missing this feature i must say...

Replies

 
Janus Lock
Reply
 +1 Great idea!
 
Morten Fink Eriksen
Reply

Will this be implemented some time in the future?

 
Asger Munkholm Højfeldt
Reply
Hi - that's a great suggestion. I will bring it up at our next PM meeting.

 
Asger Munkholm Højfeldt
Reply
 Hi again - we have agreed on implementing this feature in one of our upcoming releases. I hope it will be included in the 8.2 version 27th November - but it needs to be planned in details before I can be sure. 
 
Morten Fink Eriksen
Reply
You rock'!
 
Martin Nielsen
Reply

 You rock +1!

 
Lars Sørensen
Reply

How is this attribute used in frontend? I can't seem to find a template tag containing this, but I might be looking the wrong place.

BR.

Lars

 
Nicolai Høeg Pedersen
Reply

It is used to render a canonical if you check the "Use canonical in eCommerce" checkbox in mgmt center under url settings...

 

You need it as a tag?

 

BR Nicolai

 
Rune Skovbo
Reply

I need it as a tag :-)

 

/Rune

 
Rune Skovbo
Reply

So was this ever made possible? That way we could make a breadcrumb straight to the product. Like: Pagename > Product Group > Product Name

 

 

 
/Rune
 
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

In addition to it being available as a tag, should this also update the GroupLink tag? Or at least have it available side by side? I would love to be able to have consistent links to products, regardless of where they are being shown...

 

Imar

 

 
Lars Sørensen
Reply

The tag is available:) If you've specified a primary group, the GroupID of that group is available in 

<!--@Ecom:Product.PrimaryGroupID-->
There doesn't seem to be a full link tag that includes the GroupID, however, but I can live with that:)
BR.
Lars




 

 
Lars Sørensen
Reply

... And you need to apply the GroupID parameter before the ProductID in the link. Otherwise, the URL will be /ProductName/GroupName.aspx :)

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

The problem with that is that it gives you the primary group, nut not the path to it. I have a structure like this:

 

/Workstations/MultiCoreServers/MyProduct

 

where MultiCoreServers is the primary group. The canonical is correctly set to /Workstations/MultiCoreServers/MyProduct but by using the ID alone I can't link to it correctly....

 

Imar

 

 
Rune Skovbo
Reply

For now I have used snippets and done this on the product page:

	<!--@SnippetStart(ProductGroupLink)-->
	  <!--@LoopStart(AssociatedGroups)-->
	    	<!--@If(AssociatedGroups.LoopCounter=1)-->
	  			<!--@Ecom:Group.Link-->
	  		<!--@EndIf-->	
	  	<!--@LoopEnd(AssociatedGroups)-->
	<!--@SnippetEnd(ProductGroupLink)-->

And then:

<!--@Snippet(ProductGroupLink)-->

where i need to build my breadcrumb.

 

This gives me the whole group link, with name and all.

 

/Rune

 

 

 

 

 
Lars Sørensen
Reply

I do get the path (8.3.1.9), however, when the product is in a subgroup, the URL is /ProductName/SuperGroupName/SubGroupName.aspx.

Br.

Lars