Bug #17753
closed
Button for creating new records disappeared on nested child records if a parent record reached the maxitems value
Added by Malte Jansen about 17 years ago.
Updated over 16 years ago.
Description
I have two tables which I connect with irre. When I make following reference it the irre element is not shown:
Screenshot a: table2 (visible) > table3 (visible) > table2 (invisble)
When I'm using follwing it works fine:
Screenshot b: table3 (visible) > table2 (visible)
I'm also using for both tables:
"foreign_field" => "parentuid",
"foreign_table_field" => "parenttable",
It also does not work with the trunk version.
(issue imported from #M6651)
Files
Can somebody move it to the category: IRRE.
Thanks
This bug accours if following is not set:
["config"]["appearance"]["newRecordLinkPosition"]
Perhaps there should be a default value for the "appearance". Than it would also work with more levels...
Could you please attach your extension (or send it via mail to oh (at) inpublica /dot/ de)? Thx!
Problem:
On using nested inline records with the 'maxitems' property set, I happens, that the "create new record" button disappears also for nested children. These buttons are selected only by classname and thus also those buttons of the children were hidden. Furthermore IE7 has some issues on using the getElementsByClassName method.
Solution:
Add a md5-hash of the specific parent to each "create new record" button and select the objects by classname and this hash. Furthermore the "object.getElementsByClassName(classname)" calls were modified to "Element.getElementsByClassName(object, classname)".
Please test the attached patch and give me some feedback. Thanks!
Committed to SVN:
- TYPO3_4-1 (rev. 2857)
- Trunk (rev. 2858)
Also available in: Atom
PDF