Register   Login
     
  Latest Posts  
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
Changing The Home Directory.
by rtnovak on 1/09/2009 1:03 AM
RE: Updating Simple Gallery
by rtnovak on 1/09/2009 12:54 AM
RE: Select Image Button does not work.
by rtnovak on 1/09/2009 12:53 AM
Updating Simple Gallery
by rtnovak on 1/08/2009 9:59 PM
Has pay-per-ad. been added yet?
by wpmilk on 1/08/2009 7:13 PM
Has pay-per-ad. been added yet?
by wpmilk on 1/08/2009 7:13 PM
  Forums  
Subject: Small extension the the friendly url mod.
Prev Next
You are not authorized to post a reply.

Page 2 of 3 << < 123 > >>
Author Messages
Lance LongUser is Offline
Gold Membership
Nuke Wiz
Nuke Wiz
Posts:134


9/26/2006 8:49 AM  
I think we are nearly on the same page - the template would just be a way to control what the "number of URL formats" are.  Advanced users could tweak them for special cases but in large part they would be preset for normal DNN use.


Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12820


9/26/2006 10:11 PM  
Yep, I agree, for each format, a specific handler must be imlpemented, the best way to pick up whether to call or handler or not would be a regex call. This could probably piggy back on what has already been done in the core provider.

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


10/02/2006 6:33 AM  
Try using
 to post any code.

Or even

 

Scott McCulloch
Site Administrator
Lance LongUser is Offline
Gold Membership
Nuke Wiz
Nuke Wiz
Posts:134


10/11/2006 10:37 AM  
Scott,

Found any time to work on this project?

Lance


Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12820


10/11/2006 9:14 PM  
Not yet, I'm travelling this week and back on full time next week. Shoot me a reminder next week and I'll take a look at what we discussed. (support@ventrian.com)

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


4/17/2007 11:57 PM  
Any news concerning the possibility of having a dash in the page name ??
If the title of my page is: About-Us, the URL should look like: /About-Us.aspx (and today, it is AboutUs.aspx).

DV

Non linear video editing software, tips and tricks, tutorials... Déclic Vidéo FX
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12820


4/18/2007 9:56 AM  
I've talked about it before, you could seperate on case, but what happens when you have a page called IT.aspx, it would be I-T.aspx

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


4/18/2007 12:10 PM  
No no, the idea is the following: "keep the hyphen if the hyphen is present in the page title".
For exmaple, if you have a page name which is: About-Us, it should keep the "-"
Today, it is removing the "-"


DV

Non linear video editing software, tips and tricks, tutorials... Déclic Vidéo FX
xcentricUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:30

4/24/2007 2:20 AM  

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

 

Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12820


4/24/2007 6:05 AM  
Hmm, this could be posible, you could strip the last part of the tab path and substitute it with the Page Title (with illegal characters stripped out, e.g. spaces)

Scott McCulloch
Site Administrator
rupurtUser is Offline
Registered Users
Nuke Super Newbie
Nuke Super Newbie
Posts:12

5/14/2007 12:36 AM  
Just my 2c here.

I think we sould also consider speed. The current implementation is good because it just reads a value (TabPath) and uses it to remap the url. If there is too much string comparing and replacement it will slow down a high traffic site.

I was thinking about writing a mod for tab creation/editing that doesn't just remove spaces but allows each page to set the seperator and also having a fall back default in portal settings.
rupurtUser is Offline
Registered Users
Nuke Super Newbie
Nuke Super Newbie
Posts:12

5/14/2007 1:14 AM  
Ive just looked into the problem a bit more and made the change to look for the tab name and replace the end of the tabpath with the tab name with hyphens and it works fine. However this doesn't solve the problem of parent pages the hyphen is not inserted for parents.

If anyone wants to try out the mod you can get it here.
http://www.hotlinkfiles.com/files/25152_vf0du/DotNetNuke.HttpModules.UrlRewrite.HyphenMod.20070517.zip]DotNetNuke.HttpModules.UrlRewrite.HyphenMod.20070517.zip
rupurtUser is Offline
Registered Users
Nuke Super Newbie
Nuke Super Newbie
Posts:12

5/14/2007 2:58 AM  
ok i've made a modification so it takes care of parents. It does so by looking up each parent in the database so i wouldn't advise using it for high traffic websites.

www.hotlinkfiles.com/files/25196_9p3m2/DotNetNuke.HttpModules.UrlRewrite.WithParents.20070514.zip
Déclic VidéoUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:820


5/14/2007 4:34 AM  

Hello rupurt,

Good idea ! But why not doing the same for parent (same than child)  ??
If we apply your module, does it solve the problem of editing a page (xcentric gave a solution which is PERFECT for me, excepted when we need to update the page).

 

DV FX


Non linear video editing software, tips and tricks, tutorials... Déclic Vidéo FX
rupurtUser is Offline
Registered Users
Nuke Super Newbie
Nuke Super Newbie
Posts:12

5/14/2007 5:24 PM  
Posted By Declic Video on 5/14/2007 4:34 AM

Hello rupurt,

Good idea ! But why not doing the same for parent (same than child)  ??
If we apply your module, does it solve the problem of editing a page (xcentric gave a solution which is PERFECT for me, excepted when we need to update the page).

 

DV FX


I dont quite understand your question DV FX. The last solution i posted works for parents and also works for editing the page. It only replaces the spaces with a -. There is no settings to change this as that is all i needed
Déclic VidéoUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:820


5/15/2007 12:00 AM  
Sorry, I was not clear.
You said: "It does so by looking up each parent in the database so i wouldn't advise using it for high traffic websites"

I am not a developper, nor programmer, but it seems that your solution creates a lot of system usage (CPU resources) and it can not be used for high traffic site. I was asking why you did not do a trick like the one proposed by xcentric, which is not CPU/resources consuming ??? It would satisfy everybody. Do you have a website where we can see your module ???

DV FX

Non linear video editing software, tips and tricks, tutorials... Déclic Vidéo FX
rupurtUser is Offline
Registered Users
Nuke Super Newbie
Nuke Super Newbie
Posts:12

5/15/2007 12:50 AM  
the solution xcentric gave doesn't work when you edit pages. The solution i gave does work for editing pages. In my solution if there are lots of nested pages it will have to look up the parent each time. It was a quick solution i made. If people have better solutions i will try and implement them.
Déclic VidéoUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:820


5/15/2007 1:48 AM  
Posted By rupurt on 5/15/2007 12:50 AM

{...}
In my solution if there are lots of nested pages it will have to look up the parent each time.{...}



Yes, that's why I thought that you could do something similar to what is proposed by xcentric, having a modification of tabpath for parent/child. This way, no lookup and no CPU resources consummed. But I am not programmer, I do not have any idea how to do this. I had plenty of roblems to run my DNN with bi-language, and I am now satisfied the way it is. I am very carefull to test new method, but yours seems very interesting. Since I have a lot of traffic, I am a little bit afraid of testing it...

 

DV


Non linear video editing software, tips and tricks, tutorials... Déclic Vidéo FX
xcentricUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:30

5/15/2007 6:15 AM  
Some feedback on this dll.

server 03 x64 sp2
sql server 2005 ent x86
dnn 4.5.1

I dropped the dll in the bin directory. Then tried to pull a page. The worker process went into 100% cpu usage.

rupurt, what is your testing environment? Because it does not work in mine.
rupurtUser is Offline
Registered Users
Nuke Super Newbie
Nuke Super Newbie
Posts:12

5/15/2007 11:05 PM  
vista with sql express 2005.

It doesn't take up 100% CPU on this machine
You are not authorized to post a reply.
Page 2 of 3 << < 123 > >>

Forums > Projects > Friendly Urls > Small extension the the friendly url mod.



ActiveForums 3.7