[TYPO3-core] RFC: #17265: CSH in Flexforms of extbase exts broken

Georg Ringer mail at ringerge.org
Mon Jan 24 13:13:36 CET 2011


This is an SVN patch request.

Type: Bugfix

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

Branches:
Trunk

Problem:
It seems that CSH in flexforms is broken again but only for extbase
extensions. The reason is that the key for extbase based extensions is
prepended with "settings.", so it looks like "settings.width" instead of
"width".

CSH doesn't work with "settings.width" but with "width".
The line in CSH file looks like
-----------
<label index="settings.orderBy.description">Define the sorting field</label>
---------

Test scenario:
Add a field in flexforms with name settings.fo and a csh description line
<label index="settings.fo.description">Define the sorting field</label>

It won't be shown

Solution:
At a bit better handling of the keys. This is a bit tricky as normally
there are 2-3 results expected:
1st: Fieldname
2nd: Type
3rd (optional): +

My solution is: First check if last item is a "+". If this is the case,
remove the entry from array (of course save it somewhere else) and check
then if the count is greater than 2. If yes, the last one is the type
and all others define the fieldName.

Georg
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 17265-csh_flexforms.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110124/8fb7cffa/attachment.txt>


More information about the TYPO3-team-core mailing list