Developer forum

Forum » Templates » No URL converted ProductName i DWtemplatetags

No URL converted ProductName i DWtemplatetags

Peter Bille Larsen
Reply

Hi DWs

 

If the SEO module is set to: "replace space with -", then I cannot get a URL rewritten productname in the DW template tags.

 

IE. the product is called "Copper Cup", and I get a 404 if I use that name in an URL since its replaced as "copper-cup.aspx".

 

How can I get the URL-module-rewritten-URL in some kind of output?

 

//Peter


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

You cannot. And you should not. Let Dynamicweb handle it. Simply insert the Default.aspx?... version and DW will take care of the rest.

 

Otherwise you need code:

 

Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?ID=12&GrouID=GRP1")

 

BR Nicolai.

Votes for this answer: 1

 

You must be logged in to post in the forum