Register   Login
     
  Latest Posts  
Catcha doesnt seem to work
by chaloum on 3/20/2010 8:16 PM
RE: Recently created articles are not shown in list
by atriage on 3/20/2010 10:15 AM
RE: Recently created articles are not shown in list
by spirit on 3/20/2010 10:08 AM
RE: Introducing the most powerful News Slider for Ventrian News Articles
by jhoelz on 3/19/2010 9:29 PM
Rich Snippets for Review, Ratings etc!
by georgelew on 3/19/2010 7:49 PM
Recently created articles are not shown in list
by atriage on 3/19/2010 11:18 AM
RE: News Articles Tokens
by spirit on 3/19/2010 10:43 AM
Author post count and link in listing.item.html
by mattbunce on 3/19/2010 10:18 AM
RE: News Article Detail and Lightbox
by spirit on 3/19/2010 10:12 AM
RE: News Article Detail and Lightbox
by ray-isc on 3/19/2010 9:49 AM
  Forums  
Subject: Use lowercase urls?
Prev Next
You are not authorized to post a reply.

Page 1 of 212 > >>
Author Messages
Ade AllenUser is Offline
Registered Users
Ventrian Super Newbie
Ventrian Super Newbie
Posts:12

2/01/2007 4:06 AM  
Hi,

First off, many thanks for the HumanFriendly provider

I'm attempting to change FriendlyUrlProvider.vb so that it outputs the urls in all lower-case, but not really having much success. Any advice would be gratefully received.

Ade.
Ade AllenUser is Offline
Registered Users
Ventrian Super Newbie
Ventrian Super Newbie
Posts:12

2/01/2007 4:16 AM  
Ok I sorted it, sorry to trouble you!

I added .ToLower() to every Return statement in FriendlyUrlProvider.vb and it's done the trick.

Am I likely to encounter any issues doing this?
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17204


2/01/2007 6:37 AM  
I made an attribute for another user to do exactly this, you would just specify useLowerCase="true"

If this is something that is useful, I will incorporate into the provider.

Scott McCulloch
Site Administrator
Stephen DayUser is Offline
Registered Users
Ventrian Newbie
Ventrian Newbie
Posts:2

2/17/2007 8:48 AM  

I second the feature request for a lower case url option.

Thanks!

Ade AllenUser is Offline
Registered Users
Ventrian Super Newbie
Ventrian Super Newbie
Posts:12

3/02/2007 3:16 AM  
Hi Scott,

I've come across an issue with the way I'm implementing the lowercase urls so would be very interested in seeing your solution implemented in the provider.

My issue is this...

Take the page /Admin/SecurityRoles.aspx. Without my ToLower additions to FriendlyUrl() everything works as expected, click an Edit link redirects to /Admin/SecurityRoles/tabid/41/ctl/Edit/mid/349/RoleID/0/Default.aspx.

Once I add ToLower() to all the Return statements in FriendlyUrl the 'Edit' link no longer works correctly, it redirects to
/admin/securityroles/tabid/41/ctl/edit/mid/349/roleid/keyfield/default.aspx

Notice that the RoleID (0 in this case) is replaced with 'keyfield'.

Any ideas why this may be?
Ade AllenUser is Offline
Registered Users
Ventrian Super Newbie
Ventrian Super Newbie
Posts:12

3/09/2007 3:15 AM  
Sorry to hassle you Scott, any ideas on this one?
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17204


3/09/2007 4:35 AM  
What changes did you make? The keyfield seems like an issue in the logic.

Scott McCulloch
Site Administrator
Ade AllenUser is Offline
Registered Users
Ventrian Super Newbie
Ventrian Super Newbie
Posts:12

3/09/2007 4:43 AM  
Thanks for the quick response :)

All I did was change each instance of Return FriendlyPath to Return FriendlyPath.ToLower() in FriendlyUrlProvider.vb, no changes to the logic. Bit confused, must admit!
Ade AllenUser is Offline
Registered Users
Ventrian Super Newbie
Ventrian Super Newbie
Posts:12

3/21/2007 2:32 AM  
/Me coughs politely, hoping Scott will hear.
bsboardUser is Offline
Registered Users
Ventrian Newbie
Ventrian Newbie
Posts:4

3/26/2007 4:43 PM  
Just throwing in another voice that I would also love to have the URLs be lowercase. I like to use title case page names so they look nice in the breadcrumbs, but it is more standard for urls to be all lowercase.

I also tried to modify the sourcecode, but I couldn't get it to compile because it couldn't find the dotnetnuke assemblies or something. Anyways, if you've made the modifications before, it would be very appreciated if you could release them. I don't care about the ability to turn it on or off, simply a working dll would be awesome!
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17204


3/27/2007 7:07 AM  
Oh, you probably only want to make the lower change when an article is rewritten to the new format, not all formats.

I'll make it an attribute so it can be turned on and off. I'll try to do it this week.

Scott McCulloch
Site Administrator
Ade AllenUser is Offline
Registered Users
Ventrian Super Newbie
Ventrian Super Newbie
Posts:12

3/27/2007 7:11 AM  
Spendid, thanks Scott :D
bsboardUser is Offline
Registered Users
Ventrian Newbie
Ventrian Newbie
Posts:4

3/27/2007 11:31 AM  
Yes, thank you very much!
bsboardUser is Offline
Registered Users
Ventrian Newbie
Ventrian Newbie
Posts:4

4/09/2007 9:42 AM  
Any advancements on this?

TechAde, have you gotten your changes to work?

Thanks!
Ade AllenUser is Offline
Registered Users
Ventrian Super Newbie
Ventrian Super Newbie
Posts:12

4/10/2007 1:13 AM  
Hi bsboard,

Not yet, no. I haven't tried again since Scott mentioned he would update the provider.
Tom KraakUser is Offline
Gold Membership
Ventrian Wiz
Ventrian Wiz
Posts:142


4/17/2007 5:40 PM  

Here is the lower case version Scott did for me a while ago.

Add lowerCase="True" to web.config.

Hope you don't mind Scott.


Tom Kraak
Seablick Consulting LLC
DNN SEO Quickstart Guide
bsboardUser is Offline
Registered Users
Ventrian Newbie
Ventrian Newbie
Posts:4

4/18/2007 7:19 AM  
Thanks a lot for sharing the wealth, tkraak. It is working great!
xcentricUser is Offline
Registered Users
Ventrian Active Member
Ventrian Active Member
Posts:30

4/24/2007 2:23 AM  

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

 

Déclic VidéoUser is Offline
Registered Users
Ventrian Master
Ventrian Master
Posts:1283


4/28/2007 8:04 AM  
Posted By tkraak on 4/17/2007 5:40 PM

Here is the lower case version Scott did for me a while ago.

Add lowerCase="True" to web.config.

Hope you don't mind Scott.

 



Hello,

I was VERY HAPPY of this trick, since that was exactly what I was searching for !!
But it seems that it does not work correctly with multi-lingual portal... It generates an error. Scott, would you please have a look and try to solve it ?? That would be wonderful !!
(For information, I am using Locopon and Apollo module for localisation)

Error message each time I change language:

 

4/28/2007 10:48:47 AM   General Exception      AssemblyVersion: 04.05.01; PortalID: 0; PortalNa ...
AssemblyVersion: 04.05.01
PortalID: 0
PortalName: Declic Video FX
UserID: 3
UserName: host
ActiveTabID: 56
ActiveTabName: Free_HFX
RawURL: /hollywood_fx/free_hfx/tabid/56/language/enxxxus/default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://mysite.com/hollywood_fx/free_hfx.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 80648de3-b062-4fd7-a410-65ff592241bd
InnerException: Error Detecting locale: Info= Step 1
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Globalization.CultureTableRecord..ctor
StackTrace:
Message: System.Exception: Error Detecting locale: Info= Step 1 ---> System.ArgumentException: Culture name 'enxxxus' is not supported. Parameter name: name at System.Globalization.CultureTableRecord..ctor(String cultureName, Boolean useUserOverride) at System.Globalization.CultureTableRecord.GetCultureTableRecord(String name, Boolean useUserOverride) at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride) at Delisoft.DNN.PageBases.MyLocale.d(TabLocalization_OptionsInfo A_0, LocaleCollection A_1) at Delisoft.DNN.PageBases.MyLocale.d() --- End of inner exception stack trace ---
Source:
Server Name: ULTIMAHO-IW8E90

 

DV


Pinnacle Studio, proDAD and Boris FX tips and tricks, tutorials... Déclic Vidéo FX
xcentricUser is Offline
Registered Users
Ventrian Active Member
Ventrian Active Member
Posts:30

4/28/2007 6:01 PM  
Thank you Tom for the tasty treat! Another great feature addition to a superb handler.
You are not authorized to post a reply.
Page 1 of 212 > >>

Forums > Projects > Friendly Urls > Use lowercase urls?



ActiveForums 3.7