Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-07-17 17:56:54

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

((numbers in titles) in urls)

I am posting this here as opposed to feature ideas or in any other part of the forum as i believe that it is more of a matter of discussion rather than anything else…. for now:)

It refers to titles in urls and the way txp handles them…

It is a bit specialised but i think that it is good if there is feedback regarding this.

The ‘problem’ that I recently faced was that of ‘versioning’.
When the title of a post has a number within it, txp strips all decimals and parses the title url without them.

So if you have 'idea v1' – depending on your url scheme – translates into domain.tld/.../idea-v1
All well but when there are decimals, 'idea v1.1', the url becomes: domain.tld/.../idea-v11. The problem will of course rise when you get your v11 idea a few months later.

A solution would possibly be if txp replaced the dot (.) with an underscore (_).

I don’t know or pretend to know how or if this txp behaviour should be fixed but I’d like to hear if there are others who might have this or other similar problems regarding the url schemas.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#2 2007-07-17 18:20:00

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: ((numbers in titles) in urls)

Yeah Yiannis good point :-),

I have same kinder problems with urls on my design-portfolio. There I use a article for every design-layout. Problem occurs when I use version numbers for re-designs or multiple-designed sites with version-numbers — and then version 1.1 and 11 are same, as in your example.

Same problem occurs when using TXPhorum-forumplugin. And with TXPhorum you won’t be even able to edit url manualy (or users won’t be if they don’t change title – it’s not safe let users choose urls by themselves).

So, I think that would be nice if point(s) (between numbers) would be transfered to underline (_), or to normal line (-). It would reduce amount of double-used urls.

Last edited by Gocom (2007-07-17 18:21:23)

Offline

#3 2007-07-17 20:41:52

mourner
Member
From: Kiev, Ukraine
Registered: 2005-02-19
Posts: 57
Website

Re: ((numbers in titles) in urls)

The subject text reminded me of Lisp :)

Offline

#4 2007-07-18 13:25:58

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: ((numbers in titles) in urls)

Beyond verioning, are there are any other similar problems caused by the automated url creation? I know re the non latin and special characters problems which we unfortunately have to exclude until the web becomes ‘truly’ international. What other variables would cause unsuspected url formation results?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2007-07-18 13:32:50

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: ((numbers in titles) in urls)

Thinking about it, there is nothing that would stop us from simply leaving the dots as dots, too. So it would become domain.tld/.../idea-v1.1 – am I missing anything?

Offline

#6 2007-07-18 13:42:01

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: ((numbers in titles) in urls)

domain.tld/.../idea.v1.exe

Perhaps there are browsers that use the extension even if the content-type header is present. No dots = no extension.

Last edited by ruud (2007-07-18 13:42:19)

Offline

#7 2007-07-19 06:06:56

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: ((numbers in titles) in urls)

so should this thread go to the ‘feature ideas’ forum?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB