Robert Garcia Registered Users
 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 McCulloch Administrators
 Nuke Master Posts:12577


 |
| 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 Garcia Registered Users
 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 Koskimaki Registered Users
 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 Garcia Registered Users
 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 Koskimaki Registered Users
 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 McCulloch Administrators
 Nuke Master Posts:12577


 |
| 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 Long Gold Membership
 Nuke Wiz Posts:132


 |
| 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 McCulloch Administrators
 Nuke Master Posts:12577


 |
| 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 Garcia Registered Users
 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 Garcia Registered Users
 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 McCulloch Administrators
 Nuke Master Posts:12577


 |
| 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 Long Gold Membership
 Nuke Wiz Posts:132


 |
| 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 Long Gold Membership
 Nuke Wiz Posts:132


 |
| 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 Garcia Registered Users
 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 McCulloch Administrators
 Nuke Master Posts:12577


 |
| 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 Long Gold Membership
 Nuke Wiz Posts:132


 |
| 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 Long Gold Membership
 Nuke Wiz Posts:132


 |
| 9/25/2006 12:46 PM |
|
XML again:
[pageTitle] seperator - ...
|
|
|
|
|
Lance Long Gold Membership
 Nuke Wiz Posts:132


 |
| 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 McCulloch Administrators
 Nuke Master Posts:12577


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