[TYPO3-core] RFC #15681: Duplicate "Navigation title" can break realurl URL decoding

Christian Kuhn lolli at schwarzbu.ch
Tue Dec 21 22:30:01 CET 2010


This is an SVN patch request.

Type: Bug

BT: http://bugs.typo3.org/view.php?id=15681

Branches: trunk

Problem:
Table pages, fields title and nav_title are not enforced to be unique in 
Pid. This leads to problems especially with realurl if two pages with 
the same name exist and have the same rootline.

Solution:
Add uniqueInPid to eval of title and nav_title in TCA, there is usually 
no point in having two pages with the same title at the same tree level.

Notes:
- For pages 'title' usually 'prepend at copy' adds some counter to a 
page (copy 1) if a page is copied in page tree. This can be disabled 
with pageTS TCEMAIN.table.pages.disablePrependAtCopy = 1. If then a page 
is copied and inserted at the same tree level, with patch the inserted 
page will get a counter "0", "1" and so on. If a page record is edited, 
uniqueInPid will make sure there is no other page with the same title 
upon save.
- For pages 'nav_title' there is no default 'prepend at copy' method. 
This patch also makes sure that the nav_title is unique on copy and editing.
- There is still one race condition if there is a page with title 'test' 
and another page with some title and nav_title 'test', this is not 
handled by this patch.

Regards
Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 15681_01.diff
Type: text/x-patch
Size: 568 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101221/5c47676c/attachment.bin>


More information about the TYPO3-team-core mailing list