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 1 of 3123 > >>
Author Messages
Robert GarciaUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:31


9/15/2006 8:00 AM  
Hey Scott.   Question.

How can I get the friendly urls mod to work like this.

Instead of mysite/help/howtoorder.aspx

can you set it to do this

mysite/help/how-to-order.aspx

This would be a better solution for SEO.  Words grouped together will not be as effective as dashes between the words.

I know that if I created a tab called how-to-order, then this might happen, but then we'd get a page title of How-to-Order.  Doesn't seem right.

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


9/15/2006 6:09 PM  
Interesting question, it currently uses "TabPath" for the resolution.

TabPath stores the URL like /mysite/help/howtoorder

I guess, what could happen, is the last argument is removed, and a small function could be used to take the PageName into account.

Scott McCulloch
Site Administrator
Robert GarciaUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:31


9/15/2006 11:02 PM  
Please excuse my lack of tech speak on this one. Ok, so it uses the TabPath. Why can't it take the last set of words after the / and replaces the spaces in the page title with - ? Would that be an additional set of functions, or a simple configuration change?

Patio Umbrellas
Jason KoskimakiUser is Offline
Registered Users
Nuke Wiz
Nuke Wiz
Posts:194

9/18/2006 10:48 AM  
Easiest solution is to name your page as tab-name and set the page title to Tab Name. There is an option to set the title in addition to the page\tab name.

jason

Social Networking Site for Young Professionals - My DNN Site w/ lots of Ventrian Modules
Robert GarciaUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:31


9/18/2006 12:44 PM  
Yeah, but then your navigation would like like Home | About-US | Our-Products ect.

No, that's not viable. Scott, is it possible to add just another parameter? The - symbol in between the words?

Patio Umbrellas
Jason KoskimakiUser is Offline
Registered Users
Nuke Wiz
Nuke Wiz
Posts:194

9/18/2006 1:51 PM  
I did not realize the navigation did not use the page titles. I would think it would want to do that rather than page name. I suppose Scott could add a parameter in the provider called convertDashes and you could set convertDashes=true to get my-tab-name or convertDashes=false to mytabname.

Or now that I understand this question better, actually, making it dashes I think should be the best way to do it. But I can see how it can get complicated because what if someone named their page "my-tab-name" and someone else named their page "my tab name"?

When you go to read mysite.com/my-tab-name.aspx which one do you go to? "my-tab-name" or "my tab name"?

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:12820


9/18/2006 3:31 PM  
The current aglorithm uses TabPath to work out the page that is being requested.

This is fairly simple, because you just do a comparison on:-

{/Products/ActionManFigures} where {..} is the TabPath.

What could be done, is that the last argument is removed (ActionManFigures), and the page would use either Page Name or Page Title (it uses TabPath at the moment, which is equivalent to the path + page Name).

So we would be looking at:-

{/Products/Action-Man-Figures.aspx (if you substituted a - for a space)}

Is this what you are after?

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


9/19/2006 2:26 PM  
I too would like to have this option but even more robust…

I would like to be able to set the connecting character myself in the portal settings. I would also like to control the extension so I can set pages to ‘.html’ Both of these features are part of Inventua’s HREFexchanger but that module lacks subfolders.

My reasons are:
1) I routinely find usability issues with ‘aspx’; people are at least somewhat familiar and comfortable with .html
2) I’m moving many clients into DNN and I want to replicate their URIs as best as possible – one should avoid as much as possible moving and renaming pages once indexed.

One more gottcha – these setting should be portal to portal somehow so each site can be moved.

Doing this would generally empower DNN as the transition would be less painful.


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


9/20/2006 5:10 AM  
Do you know that "html" will require a change to IIS to map the request through the ASPNET process?

At the moment the urls are automatically generated based on the page and page hierarchy. I think the HREF exchanger allows you to assign URLs doesn't it?

Scott McCulloch
Site Administrator
Robert GarciaUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:31


9/20/2006 9:03 AM  
I'm back in. Sorry it took so long to get back.
Ok, there is another asp.net cms out there called UMBRACO.
There pages use the my-page-name.aspx scenario.

Scott, let me ask a dumb question, as you know I alway will. LOL>

If I name my page(tab) How to order, why can't you just put in an argument to replace the space (space) with a dash (-)

In other words, do the spaces in the tabs name comprise the   html tag, or are they just spaces? Either way, and again, I'm sorry I'm not a coder, but it seems that that you can add an argument to replace space with a dash.

Or am I a big dummyhead rumblepup?

Patio Umbrellas
Robert GarciaUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:31


9/20/2006 9:05 AM  
for the above post, because this BB is actually allowing html rules

In other words, do the spaces in the tabs name comprise the & n b s p ; html tag, or are they just spaces? Either way, and again, I'm sorry I'm not a coder, but it seems that that you can add an argument to replace space with a dash.

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


9/21/2006 6:47 AM  
OK - I'm using a preconfigured value from the database for resolving pages, this is called "TabPath", it has all illegal characters removed, and has the hierarchy.

So a page under Products -> Toys -> Elmo would have a TabPath of /Products/Toys/Elmo

I use this value to resolve the URLs for the friendly URL provider.

So as you can see, it's not as "easy" as just stripping out the spaces and replacing with dashes. I think I stated above an algorithm to do this, by removing the last argument "Elmo" and using the page name.

It just does not do this "at the moment".

To also answer your question, dashes are better then spaces I have heard.

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


9/21/2006 10:59 AM  
Re: HTML - yes I'm aware of the server changes needed for the extension. I have this running here: www.hometeamrealestate.ca. As you can see, I have a lot of control over how the pages look. I have obfuscated the server tech and presented a very human/search engine friendly URI. The HREFexchanger process of parcing the page after the effect is certainly not the most efficient. It limits scalability and internal usefulness which is why your approach is most interesting to me.



Lance LongUser is Offline
Gold Membership
Nuke Wiz
Nuke Wiz
Posts:134


9/21/2006 11:03 AM  
Are there discussion about modifying the tab path? I ask because a inherent weakness: pages ABC DEF and AB CDEF would have the same URIs (considering URIs are case insensitive) I woulld like more contorl over the path myself.


Robert GarciaUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:31


9/21/2006 11:33 AM  
Posted By smcculloch on 9/21/2006 6:47 AM
OK - I'm using a preconfigured value from the database for resolving pages, this is called "TabPath", it has all illegal characters removed, and has the hierarchy.

So a page under Products -> Toys -> Elmo would have a TabPath of /Products/Toys/Elmo

I use this value to resolve the URLs for the friendly URL provider.

So as you can see, it's not as "easy" as just stripping out the spaces and replacing with dashes. I think I stated above an algorithm to do this, by removing the last argument "Elmo" and using the page name.

It just does not do this "at the moment".

To also answer your question, dashes are better then spaces I have heard.
Thanks Scott.  Now that I understand a little better how your getting the value.  I didn't follow before.

I'm sorry.

And sorry if you think that I am assuming anything you do is easy.  Your apps are so well made, well, it makes it seem easy, but we all know it's not. 

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


9/21/2006 9:39 PM  
It's okay, I was just explaining how I come up with the current value.

Anything is possible, just need decide on what should be done. The -'s have worked out really well in the news article module, so they should work out really well here too.

llong:- I agree, in fact the ultimate control would be to assign your own URL would it not? So a page can have X number of user-defined URLs

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


9/25/2006 12:44 PM  
Indeed that would be great - perhaps via a template system:

default link: [portalAlias]/[tabPath]/[pageTitle].aspx
menu link: [portalAlias]/[tabPath]/[pageTitle].aspx?link=topNavigation <- opens up better usability and path studies.
user articles path: [siteroot]/articles/[username]/[TabPath]/[pageTitle].html

Truncated XML:
[pageTitle]

seperator
-
...


etc.

What are the chances of getting the html extension soon however? I would like to use it for a couple of sites.

(my friends call me Lance)


Lance LongUser is Offline
Gold Membership
Nuke Wiz
Nuke Wiz
Posts:134


9/25/2006 12:46 PM  
XML again:

[pageTitle]
 
  seperator
  -
  ...
 



Lance LongUser is Offline
Gold Membership
Nuke Wiz
Nuke Wiz
Posts:134


9/25/2006 12:48 PM  
hmmmmm ... took out the & l t ; coding too. How about this:

< Token > [pageTitle]< / Token >
< setting >
< name > seperator < / name >
< Value > - < / Value >
...
< / setting >



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


9/26/2006 12:23 AM  
I'm currently in the U.S., so I can't really do anything until the weekend.

The templating is an OK idea, but can be difficult to implement, if the path does not contain the necessary information to convert the URL into an actual URL.

A better solution would be to have a number of URL formats to choose from.

Scott McCulloch
Site Administrator
You are not authorized to post a reply.
Page 1 of 3123 > >>

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



ActiveForums 3.7