[TYPO3-core] RFC: Bug #16524: No inline relation to tables with tabs possible

Oliver Hader oliver.hader at typo3.org
Sat Jan 22 18:11:13 CET 2011


This is an SVN patch request.

Type: Bugfix

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

Branches: Trunk

Problem:
(see the issue in the bugtracker for screenshots)
It seems it is not possible anymore to create inline relations to tables
which use tabs.
At least the following bugs need to be solved:
- Height is wrong
- Tabs can not be switched, firebug says "DTM_mouseOver is not defined"
- if record is saved, the related records are saved on the current page
but are not selected in the parent record
- if appearance => collapseAll => 1 is set, it is not possible to open
the irre record. firebug says "DTM_array is not defined" + "$(element)
is null"

Solution:
In TYPO3 4.4 the tabmenu.js file was somehow added by default to the
view. In TYPO3 4.5 this is missing, which is basically fine since
loading something that is not required seems to be the correct way.
However, if a IRRE children is now rendered during an AJAX request, this
tabmenu.js file is not applied to the DOM of the current view.
The solution is to extract JavaScript (and stylesheets) from
t3lib_PageRenderer, parse it and transfer it with the response to the
AJAX request back to the browser. The solutuon in this case is ugly
since there is not a specific public method in the pageRenderer to
access the JavaScript - besides that compressing/merging would still be
missing then. Thus, the render() method is used with a simplified helper
template to extract the accordant resources... phew...

Notes:
Since this affects IRRE only, I could commit this directly to SVN. But I
still wanted to have at least one comment on the patch. Thanks!

olly
-- 
Oliver Hader
TYPO3 v4 Core Team Leader

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0016524.patch
Type: text/x-patch
Size: 1824 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110122/60797da1/attachment.bin>


More information about the TYPO3-team-core mailing list