[TYPO3-core] RFC Bug #17161: be_layout foreign_table_where

JoH asenau info at cybercraft.de
Fri Jan 21 14:52:05 CET 2011


This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=17161

Branches:
trunk

Problem:
If a General Record Storage Page (GRSP) is configured, which is very 
likely the case, when you use tt_news, then TYPO3 searches for be_layout 
records only on the GRSP page and the PAGE_TSCONFIG_ID.,,If no GRSP is 
configured, it uses records from everywhere.,,I suggest do always 
include records from the page, which properties are currently edited, to 
make the feature a bit more fool-proof.

Additionally it's not possible to create layout records with pid = 0.

Solution:
Attached patch will add both, rootLevel and CURRENT_PID

CURRENT_PID will take PAGE_TSCONFIG_ID into account as well.
It will only give the user access to records of the current page, when 
there is no PAGE_TSCONFIG_ID restricting the access to another page.

Cheers

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 17161_v4.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110121/9e6854c5/attachment.asc>


More information about the TYPO3-team-core mailing list