Developer forum

Forum » Rapido » Custom URLs for the Product Page

Custom URLs for the Product Page

Tomas Gomez
Reply

Hi,

I need to set custom URLs for the Product page (that includes a Product catalogue and an Ecom navigation), using the pattern "/my-ecom-group-list".

I don't know which is the best way to add the suffix "-list" to the URL. In the properties of the Product page, you can set the URL of the page, but only to a fixed URL name that results in "/URLname/my-ecom-group".

Considering that these URLs will affect the navigation (menu, breadcrumb, etc) , which is the best place to set this URL using a custom pattern?

Regards,
Tomas


Replies

 
Tomas Gomez
Reply

Found!

It can be custonized in the properties of the Ecom groups :-)

 
Nicolai Pedersen
Reply

Using 9.8 and the new URL providers (https://doc.dynamicweb.com/documentation-9/platform/platform-tools/customized-urls#8707) you can do it like the dumps attached.

I will not ask why - it is hard to understand how that would ever make sense...

Capture.JPG Capture2.JPG Capture3.JPG Capture4.JPG
 
Tomas Gomez
Reply

Thanks, Nicolai!

I configured as you say, but then a "-1" appears at the end of the URL (e.g. "/MyGroup-list-1")

I guess the problem is that there are two pages to display the groups:

  • Landing page, to display the info about the groups. The URL has to be "/MyGroup", and the Ecom menĂº of top groups should point to this URL.
  • List page, to display the list of products of the groups (and the product pages). The URL has to be "/MyGroup-list", and the Ecom menu of secondary groups has to point to this URL

Which should be the right configuration to achieve it?

BR,
Tomas

 
Nicolai Pedersen
Reply
This post has been marked as an answer

If you use the new URL providers and disable the old ones, the -1 will only occur if you have 2 groups with the same name in the same location or the same group the same place in the url tree. If you place all groups in the "root" and you have 2 groups with the same name somewhere in the tree, you will also see -1. URLs has to be unique (that is why they are called unique ressource locator), and you have to ensure a structure that is unique to avoid -1

Votes for this answer: 1
 
Tomas Gomez
Reply

Thanks Nicolai!

I realised that the issues rooted for having two Ecommerce URL Providers for the same groups in two different pages of the same website.

I disregarded one of the URL Providers to avoid the "-1", and modify the web.config and the URL of the groups (Group > Edit > URL) to forge the winding specification of the project. Now it works great.

Regards,
Tomas

 

You must be logged in to post in the forum