Register   Login
     
  Latest Posts  
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
RE: Help! property type error
by smcculloch on 12/03/2008 3:44 PM
  Forums  
Subject: ENH: Title in URL string
Prev Next
You are not authorized to post a reply.

Author Messages
Jason KoskimakiUser is Offline
Registered Users
Nuke Wiz
Nuke Wiz
Posts:194

5/10/2006 12:45 PM  

It might be nice to expand this module and/or the core to allow additional URL customizations such as your News Articles which lets you append the article title to the end:

http://www.ventrian.com/Resources/Articles/tabid/213/articleType/ArticleView/articleId/261/Configuring-Users-Online-for-DotNetNuke.aspx

Could this be a core enhancement where perhaps in navigateurl or somewhere you could choose to set a flag to do this?

I would sure love it if on my site I could have:

mysite com/events/eventid/55/golf-lessons.aspx

mysite com/forums/fid/44/anybody-interested-in-playing-golf.aspx

mysite com/blog/bid/46/my-european-vacation-journal.aspx

Jason


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


5/11/2006 5:54 AM  
You can do this today, with the default provider, there is a call to the friendly URL provider to specify page name, that's what I use for news articles, so it depends on the module.

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

5/11/2006 8:01 AM  

I did not know that. Cool! I guess I assumed since you were doing all this url rewriting you had figured out how to do it on your modules too. Can't wait to try this out....

Jason


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


5/11/2006 7:36 PM  
Yep, just take a look at how news articles does it, it's actually part of the provider API

Scott McCulloch
Site Administrator
René de VriesUser is Offline
Gold Membership
Nuke Newbie
Nuke Newbie
Posts:1

6/06/2006 11:55 AM  
I am a little late to this party, but I am trying to solve the same issue. I extract data from an external source, and end up with urls such as http://z.nu.nl/Home/tabid/57/hmod/detail/news_id/12333843/pr/957759/type/portal/default.aspx
Where as I'd like to make sure the actual article title gets shown on the URL...

When you mention the 'default provider' are you referring to the default DNN friendly URL provider, or to your Friendly URL module.

I'd appreciate an extra pointer, I am new to this part of DNN.

Thanks,

René
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12577


6/06/2006 4:44 PM  
The default DNN friendly provider, the following would work:-

http://z.nu.nl/Home/tabid/57/hmod/detail/news_id/12333843/pr/957759/type/portal/MY-ARTICLE-TITLE.aspx

As the article title is already in the URL, if you want to replace all of it though, that's a different story

Scott McCulloch
Site Administrator
Mariette KnapUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:650


6/07/2006 12:01 AM  

That is one of the things I am hoping for with Friendly URL's. Currently in NewsArticles it does not really work. What I want is the URL to appear as:

http://www.smallbizserver.net/articles/my-article-name.aspx and nothing else in it...



Subscribe for great articles and howtos. Get unlimited access to all content.
Mariëtte Knap
www.smallbizserver.net
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12577


6/07/2006 6:16 AM  
Mariette,

The only way to do this is to mod the news articles module, and add a custom http module to rewrite the request.

Scott McCulloch
Site Administrator
Mariette KnapUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:650


6/07/2006 2:57 PM  
Well, isn't that a great improvement of NewsArticles? From a SEO stand point it is.


Subscribe for great articles and howtos. Get unlimited access to all content.
Mariëtte Knap
www.smallbizserver.net
Jason KoskimakiUser is Offline
Registered Users
Nuke Wiz
Nuke Wiz
Posts:194

6/07/2006 3:15 PM  
Posted By Mariette on 6/07/2006 12:01 AM

That is one of the things I am hoping for with Friendly URL's. Currently in NewsArticles it does not really work. What I want is the URL to appear as:

http://www.smallbizserver.net/articles/my-article-name.aspx and nothing else in it...


This really isn't practical as

1 - You could not have duplicate article names

2 - You could not have certain characters in your article titles

3 - It would take a bigger performance hit

4 - Code to do it would be difficult I would think

Jason


Social Networking Site for Young Professionals - My DNN Site w/ lots of Ventrian Modules
You are not authorized to post a reply.
Forums > Projects > Friendly Urls > ENH: Title in URL string



ActiveForums 3.7