[Typo3-dev] Speaking URIs

Michael Zedeler michael at zedeler.dk
Fri Jan 16 10:12:46 CET 2004


Hi Martin,

Martin Poelstra wrote:
> [cut]
> 3. Without the pageid, stripping the URL from the strange characters and
> saving that result together with it's pageid.
> 
> Now, the 3rd solution is the one I choose. It's not that staightforward
> to implement though. The version I'm currently working on is actually
> the third one.

It would just be really, really nice if the URLs did not depend on any 
page ids, since they may change if you somehow dump and reload the database.

> The only problem the extension will have is that it won't be able to
> handle two pages of the same name on the same level+domain, like you
> said. It is possible to include some code to automatically detect that
> situation and append something like _2 to one of the URLs to distinguish
> them. I don't need that functionality, but I might include it in a
> future release. The only problem now is, that there should be a way to
> disable the possibility to have two subpages of the same name in a page
> in the backend, so that you get an error when you try to create such a
> page (or rename it).

I think that it would be a good idea to add a new field for the symbolic 
name that is used to build the URL. If people are leaving it empty, the 
mapping-algorithm described is used on the page title. If there are 
conflicting names, none of them should work. The page maintainer can 
then resolve the conflict by entering the names he or she wants to use 
in the CMS.

Regards,

Michael.




More information about the TYPO3-dev mailing list