Register   Login
     
  Latest Posts  
Title Bar Text
by sootfoot on 1/09/2009 6:00 PM
RE: RSS and Calendar Icons not showing in new template
by smcculloch on 1/09/2009 1:53 PM
RE: Has pay-per-ad. been added yet?
by smcculloch on 1/09/2009 1:52 PM
RE: Reduce the text size of the description in RSS feeds
by smcculloch on 1/09/2009 1:51 PM
RE: Does anyone have XHTML Compliant PA Template
by georgelew on 1/09/2009 11:53 AM
Reduce the text size of the description in RSS feeds
by schotman on 1/09/2009 10:49 AM
RE: Ligtbox effect does not working in DNN 5
by smcculloch on 1/09/2009 9:49 AM
RE: Embed the coolest google local search map control
by aviavia on 1/09/2009 8:06 AM
RE: Embed the coolest google local search map control
by odove on 1/09/2009 6:43 AM
RE: Ligtbox effect does not working in DNN 5
by David Eccles on 1/09/2009 6:11 AM
  Forums  
Subject: User Friendly URLs
Prev Next
You are not authorized to post a reply.

Author Messages
Rainer HalanekUser is Offline
Gold Membership
Nuke Addict
Nuke Addict
Posts:55

5/05/2006 12:30 AM  
Hi,

Do you know http://www.inventua.com/dnn-hrefexchanger.content ? Its a module from Inventua which makes user friendly URLS (much better than the one from DNN), because it removes all that /tabid/53/ stuff.

Unfortunatley that disables your friendly URL. Do you see a possibility to get the best of both worlds?

Thanks, Rainer.
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12823


5/05/2006 2:27 AM  
Take a look at this thread, if you notice the URLs on this site, I have extended the provider for the best of both worlds:-

http://www.ventrian.com/Support/ProductForums/tabid/118/view/topic/forumid/18/postid/8808/Default.aspx

Scott McCulloch
Site Administrator
Rainer HalanekUser is Offline
Gold Membership
Nuke Addict
Nuke Addict
Posts:55

5/05/2006 3:20 AM  
Hi Scott,

For an article here you have the following url: http://www.ventrian.com/Products/Modules/NewsArticles/DemoBasic/tabid/218/articleType/ArticleView/articleId/264/Weblog-Test-II.aspx

Do you think it is possible, to shorten it to:
http://www.ventrian.com/Products/Modules/NewsArticles/DemoBasic/Weblog-Test-II.aspx

So that you cut out: tabid/218/articleType/ArticleView/articleId/264/

Of course that will only work if every article in DemoBasic has a unique name.

What do you think?

Thanks Rainer.

P.S.: Where can I download your URL provider, or will this be part of DNN sometimes?
Jason KoskimakiUser is Offline
Registered Users
Nuke Wiz
Nuke Wiz
Posts:194

5/05/2006 8:05 AM  
I too have been waiting anxiously for "the best of both worlds" as Inventua's does not handle seo friendly and he did not seem interested in doing so. As for the comment above here, this cannot be done as the parameters are needed. But one thing I did suggest was making the URL friendly when there are parameters.

So for example, when you click on a tab it would show ProductForums.aspx and then the module link it would show
ProductForums/tabid/118/forumid/4/tpage/1/view/topic/postid/9732/Default.aspx

and it would be nice if it instead would show
/forumid/4/tpage/1/view/topic/postid/9732/productforums.aspx

which I think is doable and perhaps may appear in another version. I don't mind so much just as long as the initial tab click is human\seo friendly.

Jason

ps: btw, Scott, is there another beta release of this we can test out that has the querystring problems fixed?

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

5/05/2006 8:10 AM  

Oops. I misread the previous post. That would be a nice update for news articles too! Although I think it would be too difficult and probably not worth the probable performance hit such a change would require....

I do really like the news article title in url string though. Anyone who asks about seo stuff in DNN I always refer them to one of these examples as News Articles is the only module I know that does this.

Jason


Social Networking Site for Young Professionals - My DNN Site w/ lots of Ventrian Modules
Rainer HalanekUser is Offline
Gold Membership
Nuke Addict
Nuke Addict
Posts:55

5/05/2006 8:41 AM  
Hi Scott,

I have a programmers questions for you. I made a sitemap (can be found under http://www.codeproject.com/aspnet/DnnSiteMap.asp) for DNN. The links for every page I make like the calssic blablabla/Default.apsx?tabid=xx . Is there a method (and how can I acces it) that returns the friendly url when tabid and moduleid is passed as parameters?

Thanks alot Rainer.

P.S.: I downloaded your FirendlyUrl.dll and it works perfect . Only my sitemap is to stupid for it
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12823


5/06/2006 7:43 AM  
Posted By koskimaki on 5/05/2006 8:05 AM
I too have been waiting anxiously for "the best of both worlds" as Inventua's does not handle seo friendly and he did not seem interested in doing so. As for the comment above here, this cannot be done as the parameters are needed. But one thing I did suggest was making the URL friendly when there are parameters.

So for example, when you click on a tab it would show ProductForums.aspx and then the module link it would show
ProductForums/tabid/118/forumid/4/tpage/1/view/topic/postid/9732/Default.aspx

and it would be nice if it instead would show
/forumid/4/tpage/1/view/topic/postid/9732/productforums.aspx

which I think is doable and perhaps may appear in another version. I don't mind so much just as long as the initial tab click is human\seo friendly.

Jason

ps: btw, Scott, is there another beta release of this we can test out that has the querystring problems fixed?

I actually like it better this way:-

ProductForums/tabid/118/forumid/4/tpage/1/view/topic/postid/9732/Default.aspx

Because, when viewing in google analytics, it lumps everything the /ProductForums/ folder for content which is very handy. The other way doesn't.

Yes, the querystring issue should be fixed, if you download from the same URL posted earlier in this thread.

A big fix I plan on doing is having a constant URL for loging, privacy, terms, etc. This will help SEO greatly I think.


Scott McCulloch
Site Administrator
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12823


5/06/2006 7:45 AM  
Posted By Cepheus on 5/05/2006 8:41 AM
Hi Scott,

I have a programmers questions for you. I made a sitemap (can be found under http://www.codeproject.com/aspnet/DnnSiteMap.asp) for DNN. The links for every page I make like the calssic blablabla/Default.apsx?tabid=xx . Is there a method (and how can I acces it) that returns the friendly url when tabid and moduleid is passed as parameters?

Thanks alot Rainer.

P.S.: I downloaded your FirendlyUrl.dll and it works perfect . Only my sitemap is to stupid for it


If your sitemap module uses NavigateUrl, it should work OK. It probably manually constructs the URL.

Scott McCulloch
Site Administrator
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12823


5/06/2006 8:20 AM  
Posted By Cepheus on 5/05/2006 3:20 AM
Hi Scott,

For an article here you have the following url: Products/Modules/NewsArticles/DemoBasic/tabid/218/articleType/ArticleView/articleId/264/Weblog-Test-II.aspx

Do you think it is possible, to shorten it to:
Products/Modules/NewsArticles/DemoBasic/Weblog-Test-II.aspx

So that you cut out: tabid/218/articleType/ArticleView/articleId/264/

Of course that will only work if every article in DemoBasic has a unique name.

What do you think?

Thanks Rainer.

P.S.: Where can I download your URL provider, or will this be part of DNN sometimes?


Only with a custom httpModule you would need to put in the web.config that exists for News Articles only. This would allow you define your own URLs when creating an article, or have it auto-generated from the title.


Scott McCulloch
Site Administrator
Rainer HalanekUser is Offline
Gold Membership
Nuke Addict
Nuke Addict
Posts:55

5/07/2006 12:08 AM  
Posted By smcculloch on 5/06/2006 7:45 AM
Posted By Cepheus on 5/05/2006 8:41 AM
Hi Scott,

I have a programmers questions for you. I made a sitemap (can be found under http://www.codeproject.com/aspnet/DnnSiteMap.asp) for DNN. The links for every page I make like the calssic blablabla/Default.apsx?tabid=xx . Is there a method (and how can I acces it) that returns the friendly url when tabid and moduleid is passed as parameters?

Thanks alot Rainer.

P.S.: I downloaded your FirendlyUrl.dll and it works perfect . Only my sitemap is to stupid for it


If your sitemap module uses NavigateUrl, it should work OK. It probably manually constructs the URL.
Where can I find that NavigateUrl method? As you guessed right, I build up the navigation string manually. I found that the DotNetNuke.Services.Url.FriendlyUrl.DNNFriendlyUrlProvider has a FriendlyUrl method which takes TabInfo and Path as parameter. But the result is not what I expected and I only have TabId and PortalId. So I don't know where to get that Path from anyway. Any ideas?
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12823


5/07/2006 7:38 AM  
NavigateURL can be found in the DotNetNuke.Common namespace.

Have a look at the core modules for examples, e.g. Announcements..

Scott McCulloch
Site Administrator
Rainer HalanekUser is Offline
Gold Membership
Nuke Addict
Nuke Addict
Posts:55

5/07/2006 9:22 AM  
That was it. Thanks.

Rainer.
You are not authorized to post a reply.
Forums > Modules > News Articles > User Friendly URLs



ActiveForums 3.7