Register   Login
     
  Latest Posts  
RE: Negative role tokens: ISNOTINROLE, ISAGENTNOTINROLE
by richardcook on 12/03/2008 11:01 PM
RE: Remove CAPTCHA when logged in?
by ba on 12/03/2008 10:22 PM
Admin and Host Users and Captcha
by ba on 12/03/2008 10:14 PM
RE: Notification on comment and multiple authors
by ba on 12/03/2008 8:54 PM
RE: How do I - templates
by cptkoi on 12/03/2008 8:19 PM
Notification on comment and multiple authors
by ba on 12/03/2008 8:14 PM
Private Messages 1.07 - Potential Display Name Bug
by blob150 on 12/03/2008 5:16 PM
Removal of "Actions" section...
by jlatulippe on 12/03/2008 5:08 PM
RE: MultiSelect Search on Multiple Checkbox
by smcculloch on 12/03/2008 3:46 PM
RE: Property Agent Latest Filter
by erikvb on 12/03/2008 3:45 PM
  Forums  
Subject: Multiple parameters
Prev Next
You are not authorized to post a reply.

Author Messages
colin robsonUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:7


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
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12577


9/14/2006 6:52 AM  
To do this, you would need to write some specific catalook code to do the lookups. (category ID, product ID, etc). This code would go in the provider.

It can be definately done though.

Scott McCulloch
Site Administrator
colin robsonUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:7


9/14/2006 9:22 AM  
oh bugger.

took me ages to try and build a custom checkout process from the catalook source! and quite a novice at vb.net

can you give me some pointers at all?

Thanks
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12577


9/14/2006 8:01 PM  
Well, when you resolve a url now that has a TabID, it's a simple lookup to retrieve the TabID from the TabName.

If you now bring categories from catalook, you'll need to work out what your URLs would need to look like, and do a categoryID lookup on that pattern.

You would do all of this in the friendlyUrl provider and not catalook.

Scott McCulloch
Site Administrator
Jason KoskimakiUser is Offline
Registered Users
Nuke Wiz
Nuke Wiz
Posts:194

9/18/2006 11:05 AM  
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


Social Networking Site for Young Professionals - My DNN Site w/ lots of Ventrian Modules
Jason KoskimakiUser is Offline
Registered Users
Nuke Wiz
Nuke Wiz
Posts:194

9/18/2006 11:09 AM  

Oops. I forgot you would have to mod catalook to write the new URL format. But with my solution posted, you would only have to add a mod for writing URLs and not for reading them.

Jason


Social Networking Site for Young Professionals - My DNN Site w/ lots of Ventrian Modules
colin robsonUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:7


9/18/2006 1:49 PM  
A Typical Catalook Query String might look like this

A)Selecting a category
/Default.aspx?tabid=36&List=1&CategoryID=3&Level=1&SortField=6

B)Selecting a product
/Default.aspx?tabid=36&CategoryID=1&List=1&SortField=6&Level=1&ProductID=30

So clearly i would want the category to look like
/Home/1/1/6/CATEGORYTITLE.aspx

and products to look like
/Home/1/1/6/CATEGORYTITLE/PRODUCT.aspx

Where:
/Home = tab catalook is located on
/1/ = List
/1/ = Level
/6/ = Sortfield

would the resolving of this custom url happen in this rewriter or would it happen in catalooks resolver?

would i need to
a) get the product id based on the passed product title
b) get the category id based on the passed category title

and if i were to type in
ww.mysite.com/CATEGORY

where would this resolve take place? in this rewriter or catalook? how would the rewriter know that Category is going to send it to catalook?

forgive me if these questions sound really basic, but i've never done this before, but am really eager to learn how to!
Jason KoskimakiUser is Offline
Registered Users
Nuke Wiz
Nuke Wiz
Posts:194

9/18/2006 1:58 PM  
I'll post some more info tonight with a bit on how to do this. However, for seo, consider which parameters you want to be friendly and which ones in a query string at the end. Search engines generally don't like duplicate content. So you may want to do this:
/Home/1/1/CATEGORYTITLE/PRODUCT.aspx?sortID=6

else if you have 6 different sortIDs for the same product the search engine will see 6 different pages which all have the same content.

Social Networking Site for Young Professionals - My DNN Site w/ lots of Ventrian Modules
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12577


9/18/2006 3:23 PM  
Wouldn't you have to mod the rewriter to convert a category title into a category ID koskimaki?

The resolve for reading a URL takes place in the rewriter (httpModule) while actually displaying the URL in links can be up to either the rewriter (provider) or the module itself.

Scott McCulloch
Site Administrator
colin robsonUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:7


9/19/2006 12:56 AM  
Posted By koskimaki on 9/18/2006 1:58 PM
I'll post some more info tonight with a bit on how to do this. However, for seo, consider which parameters you want to be friendly and which ones in a query string at the end. Search engines generally don't like duplicate content. So you may want to do this:
/Home/1/1/CATEGORYTITLE/PRODUCT.aspx?sortID=6

else if you have 6 different sortIDs for the same product the search engine will see 6 different pages which all have the same content.


I've already done seo for this using GSiteCrawler and creating a sitemap that only visits each page once and disregards duplicate content.

SortID isnt really needed i'm sure. it used to be an option Sort by (price asc/desc, name asc/desc, etc.) and sort id 6 is my custom sort.
the other two numbers too arent probably needed either.

i'd love for someone to be able to do some seo analysis on my dnn ecommerce site.
You are not authorized to post a reply.
Forums > Projects > Friendly Urls > Multiple parameters



ActiveForums 3.7