Ade Allen Registered Users
 Nuke 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 Allen Registered Users
 Nuke 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 McCulloch Administrators
 Nuke Master Posts:12820


 |
| 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 Day Registered Users
 Nuke Newbie Posts:2

 |
| 2/17/2007 8:48 AM |
|
I second the feature request for a lower case url option.
Thanks! |
|
|
|
|
Ade Allen Registered Users
 Nuke 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 Allen Registered Users
 Nuke Super Newbie Posts:12

 |
| 3/09/2007 3:15 AM |
|
| Sorry to hassle you Scott, any ideas on this one? |
|
|
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12820


 |
| 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 Allen Registered Users
 Nuke 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 Allen Registered Users
 Nuke Super Newbie Posts:12

 |
| 3/21/2007 2:32 AM |
|
| /Me coughs politely, hoping Scott will hear. |
|
|
|
|
bsboard Registered Users
 Nuke 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 McCulloch Administrators
 Nuke Master Posts:12820


 |
| 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 Allen Registered Users
 Nuke Super Newbie Posts:12

 |
| 3/27/2007 7:11 AM |
|
| Spendid, thanks Scott :D |
|
|
|
|
bsboard Registered Users
 Nuke Newbie Posts:4

 |
| 3/27/2007 11:31 AM |
|
| Yes, thank you very much! |
|
|
|
|
bsboard Registered Users
 Nuke Newbie Posts:4

 |
| 4/09/2007 9:42 AM |
|
Any advancements on this?
TechAde, have you gotten your changes to work?
Thanks! |
|
|
|
|
Ade Allen Registered Users
 Nuke 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 Kraak Gold Membership
 Nuke Wiz Posts:110


 |
| 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 |
|
|
bsboard Registered Users
 Nuke Newbie Posts:4

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

 |
|
Déclic Vidéo Gold Membership
 Nuke Master Posts:820


 |
| 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 |
|
Non linear video editing software, tips and tricks, tutorials... Déclic Vidéo FX |
|
|
xcentric Registered Users
 Nuke 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. |
|
|
|
|