Register   Login
     
  Latest Posts  
RE: Removal of "Actions" section...
by jlatulippe on 12/05/2008 2:17 PM
RE: News Articles Tokens
by sistemi on 12/05/2008 11:27 AM
A few Questions
by mfuller on 12/05/2008 11:22 AM
Gallery Module causes System Out of Memory
by jeremias_t on 12/05/2008 10:30 AM
RE: Google Checkout?
by rion on 12/05/2008 4:34 AM
RE: image path in RSS
by robax on 12/05/2008 3:51 AM
RE: Display Name
by SteveJ on 12/05/2008 3:34 AM
RE: image path in RSS
by pmichael on 12/05/2008 2:22 AM
RE: IFiinity DNN ArticleSiteMapProvider
by bennyj on 12/05/2008 1:09 AM
RE: ENH: Secure Files/Directories
by smcculloch on 12/05/2008 12:13 AM
  Forums  
Subject: Whoever wants hyphens in their urls with this mod the answer is inside!!!
Prev Next
You are not authorized to post a reply.

Author Messages
xcentricUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:30

4/24/2007 2:03 AM  

Well, its quite simple actually. In fact I stumbled upon it navigating the sql table structure in dnn. If you are sql server literate then read on. If not then stop right here because you could ruin your installation permanantly!!! I take no responsibility if you mess up your installation. Ok braves souls here we go.

1. Login to your SQL Server using the "SQL Server Management Studio". If you have "SQL Server Express" installed then chances are its not installed. You can download it separately from MS. Google for it.

2. Navigate the dnn tables until you find the "Tabs" table.

3. Find the field called "TabPath" and then edit the hyphens manually into each path you desire.

4. Go make some coffee!

Also, if you have a google site map generator installed, it works like a treat!

Furthermore,

This is a "hack"! It is a temporary workaround until Scott can graciously figure how to get the hyphens in the tab path automatically. Good luck.

xcentricUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:30

4/24/2007 2:22 AM  
I forgot, those who want lowercase urls this works again.
xcentricUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:30

4/24/2007 3:25 AM  
Oh poo! A side effect to this is if you edit the page settings it changes back. So, this only works if you dont need to change your page settings often. And if you do, you could just re-edit the table. Like I said it's a hack.
xcentricUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:30

4/24/2007 3:27 AM  
Or just edit your pages through the table instead. Man, I have been up way too long, haha.
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12598


4/24/2007 6:06 AM  
Yep - it does use the TabPath, and modifying it in the tables would work, but like others have suggested, the UI will mess this up.

I've posted in another thread, it might be possible to modify the provider to use the tabpath minus the current page (and then use the page title of the current page)

Scott McCulloch
Site Administrator
Déclic VidéoUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:781


5/11/2007 1:19 PM  
Hello xcentric, hello Scott.

Finally, I have successfully applied this hack. I love it, it works perfectly.

But... Since I have applied it, I have this error, do you think it is related or not ?? Scott mention something about UI, but I have not understood and I am not strong enough to understand it. What is your opinion ??? It seems that this error appear when I do a synchronise file (recursive)


5/11/2007 1:06:52 PM General Exception AssemblyVersion: 04.05.01; PortalID: -1; PortalN ...
AssemblyVersion: 04.05.01
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL: /Hollywood_FX/Free_HFX.aspx
AbsoluteURL: /Hollywood_FX/Free_HFX.aspx
AbsoluteURLReferrer: http://declic-video-fx.com/Hollywood_FX/Free_HFX/tabid/56/ctl/UserUpload/mid/385/Default.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 255151cc-80c3-4ba8-bf0a-d328a46c5d6c
InnerException: Unhandled Error:
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.UI.Util.CheckVirtualFileExists
StackTrace:
Message: System.Exception: Unhandled Error: ---> System.Web.HttpException: The file '/Hollywood_FX/Free_HFX.aspx' does not exist.at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)--- End of inner exception stack trace ---
Source:
Server Name: DEDI524





Non linear video editing software, tips and tricks, tutorials... Déclic Vidéo FX
You are not authorized to post a reply.
Forums > Projects > Friendly Urls > Whoever wants hyphens in their urls with this mod the answer is inside!!!



ActiveForums 3.7