Developer forum

Forum » Ecommerce - Standard features » Multiple groups in url

Multiple groups in url

Morten Fink Eriksen
Reply
I am experiencing a problem when including multiple groups in the url that seems to be related to groupids looking similar, so they get parsed incorrectly.

It seems that if i have a group say "GroupID=GROUP2" and then likewise have a group in the same url called "GroupID=GROUP20" it parses the url parameters incorrectly, so it results in a url like this:

http://fricykler2012.net.dynamicweb.dk/Produkt/Tilbehør/Udstyr/Lygter/Abus-Baglygte.aspx?0

Where the "?0" is the remainder of "GroupID=GROUP20" which seems to have been parsed as "GroupID=GROUP2".

Is there any resolution for this??

Replies

 
Marco Johannesen
Reply
Might be an stupid questions, but why are you includingg multiple groupid's?

Would seem that it would'nt be able to differenciate the different parameters anyway.



 
Morten Fink Eriksen
Reply
The reason is that im trying to show the path to the product in the URL, say "GroupID=2&GroupID=20&GroupID=109" would translate into "Tilbehør/Udstyr/Lygter/PRODUCTNAME", and i don't see why it cant differentiate between the parameters, it seems that it only searches for instances of "GroupID=2" and then just bluntly replaces accurance of it in some way, instead of looking at the whole parameter.

Problem is that im trying to narrow possible paths down to one unique path for a product and trying to show the logical path to the product even though it might be placed in other groups, i do this by disabling "show in menu" for groups that shouldn't be shown in the url path.

There might be a better solution to this, but right now i can't see any. Otherwise i just have to have one groupid in the url and then it might just show "Tilbehør/PRODUCTNAME" which i would like to avoid.
 
Marco Johannesen
Reply
If you use the products group it will automaticly add alll parents to the path.
Atleast thats what our current project does:

/Default.aspx?ID=32&groupid=GROUP16&productid=PROD8
turns into
/da-DK/Produkter/Produkter-Specialite-Pesto/Groen-pesto.aspx

Where:
- da-DK is the language
- - Produkter is the page
- - - Produkter top category
- - - - Specialite 1 category
- - - - - Pesto  2 category
- - - - - - Groen-pesto is the product

Its on a DW8, so that might make a difference :-)

 

You must be logged in to post in the forum