Posted By kolin on 9/14/2006 4:19 AM Hi all,
i've have a DNN site (4.0.3) and i'm looking specifically for some sort of decent url rewriter for it.
the catch?
it has Catalook.net module (version 4.04) installed and running on it. this obviously means it has extra parameters than just tabid (category id, product id)
other urlrewrite methods i've tried on it simply rewrite the Core DNN pages, but do not rewrite the catalook product pages.
it would be brilliant if this could allow multiple parameters easily. so i can have (example)
www.mysite.com/shop/motherboards/intel-d875pbz.aspx
where:
shop = tabid for catalook store motherboards = categoryID (its title if you will) intel-d875pbz = product ID(its title)
can this be done yet?
Thanks
Kolin
This will also require a customization of the urlrewriter too. And, as a matter of fact, you can do all of this with just the urlrewriter without having to mod catalook code at all (I think).
Here is my solution....
http://www.ventrian.com/Support/ProductForums/tabid/118/forumid/35/postid/10876/view/topic/Default.aspx
What this allows is for you to have a specific rule where if the first item after portal alias matches a string, then you set the tabid to that string. So you would add using my code example
tabPath = Me.checkYAPTabPath(tabPath, "shop", "tabnameforcatalookstore")
Note that I have added a new update solution to this one posted (which I can post here soon) which extracts and adds the parameter to the qs. What I do is add the value to the qs path when writing the URL. So if it matches on shop you could add "&shop=motherboards" to qs (or "&catid=motherboards"). With this same code, you could also strip the last parameter, intel-d875pbz from url and add an additional parameter to qs "&productID=intel-d875pbz ".
So when the catalook store makes its request.querystring calls it will still get all the correct values and so you won't have to modify it.
Jason |