[Typo3-dev] Speaking URIs

Michael Zedeler michael at zedeler.dk
Fri Jan 16 13:52:42 CET 2004


Hi Martin,

Martin Poelstra wrote:

>>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.
> 
> Well, good news: they don't :)
> Only in the url-cache, which you would have to clear, or even better:
> you'd then just set all cached urls to 'expired', so they will be
> updated automatically. In the latter case you will keep the URLs to
> pages that changed their names though, so that's good. (This will all be
> more clear when I release the extension.)

Nice!

> [cut]
> Well, in fact it is rather inefficient to let the extension figure out
> this ambiguity when it is construcing URLs, because it then has to look
> at all pagetitles in all pages along the rootline. It would be a much
> better idea to detect this when you save a page and then either give an
> error or warning, or automatically 'fill in that extra field'.
> I don't think you want to bother your users or admins with filling in
> this extra field.

Definately! Since you can resolve conflicts at this stage.

Rootline is such an odd construct. Why is it that we don't just say "path"?

> But I actually don't really see a case where different pages will have
> the same name AND the same PID, except maybe for the root-page of
> domains, but they don't get included in the URL anyway (because they
> 'are' /), so they're not a problem.

...but the new URIs were not depending on the pid? So how is this done?

> I would like to plead for the solution where we just disable the
> possibilty of having pages with both the same name AND the same PID. The
> detection should be done when saving the page in the backend.

Yes.

Regards,

Michael.




More information about the TYPO3-dev mailing list