Developer forum

Forum » Dynamicweb 10 » How to use group name urls in DW10

How to use group name urls in DW10

Kasper Legarth
Reply

Hello.

We are upgrading af customer from 9 to 10. On their old site we are using the e-commerce group URLs settings:

 

With these settings we have domain.com/shop/group/sub-groub/product but in dw 10 there are not settings for the group URLs? Is there a wark around for this?


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Kasper

The settings from above is from our deprecated URL system which does not exist on Dynamicweb 10. DW10 is using the new URL provider based system. (Also exists on DW9)

Pleas take a look at the documentation: https://doc.dynamicweb.dev/manual/dynamicweb10/settings/system/webhttp/customized-urls.html

Here is how to set it up on a page: https://doc.dynamicweb.dev/manual/dynamicweb10/content/url-provider.html

 
Kasper Legarth
Reply

Hi Nicolai

My apologies for taking so long to get back to you. First of all thanks for the documentation you send.

I do not quite seem to get it to work the way I wasn't (or at least the way I would think it should work to be like our old DW9 solution)

I use the URL provider on a child. website.com/machines/new-machines The "new machines" is an e-commerce nav showing specific groups. The groups I have specified are not at the root level in the shop. That structure is: shop -> new warehouse -> machines > groups (brands)

I then checked the "Ignore parent groups in URL" on the groups selected. i would expect the URL to be: website.com/machines/new-machines/group. But this is not the case. I get the URL website.com/group. 

Has this changed going from 9 to 10, and is it expected behaviour? If yes, any ideas on how to achieve my goal?

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

When you set "Ignore parent groups in URL" the group will be placed in the root. So that is not a setting you want to use here.

Instead you can use another setting - on the website.com/machines/new-machines page, you can use the "Do not include URL in subpage URLs" setting from seo tab on the page:

https://doc.dynamicweb.dev/manual/dynamicweb10/content/pages.html?tabs=seo'

BR Nicolai

 
Kasper Legarth
Reply

So it is by design that i works differently from DW9?

I know that setting, but that not quite what i need. I want the pages in the URL before the group. Og just don't want the groups parent groups in the url.

But what you are saying this is no longer possible?

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Kasper

I might misunderstand your! So maybe show you exact setup - or I can have the partner center reach out to you and have a look at it with you.

I am pretty sure it works the same way as DW9 if you are using the new URL system - and not the old ones.

 
Kasper Legarth
Reply

Hi Nicolai.

If you could get the partner center to reach out, that would be really helpful.

Kasper Legarth
kl@gotcha.dk
26391805

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

I have asked them to contact you

BR Nicolai

 

You must be logged in to post in the forum