Project

General

Profile

Actions

Bug #14797

closed

localized pi_flexform fields show XML source of the original language

Added by JoH over 19 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2005-06-06
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Seems as if this is still problem for every FE plugin using flexforms.
After "localizing" the plugin (i.e. news or newloginbox) you will find the
complete XML structure of the original record below the input fields of the
flexform.
Have a look at this screenshot:
http://www.cybercraft.de/fileadmin/screenshots/ff_lang_prob.gif

Checking how the <div class="typo3-TCEforms-originalLanguageValue"> is generated there seems to be no TS value to switch off that behaviour.

There are 3 functions responsible for "default language" in
class.t3lib_tceforms.php":
registerDefaultLanguageData
renderDefaultLanguageContent
renderDefaultLanguageDiff

none of them is configurable via TSconfig and none of them is treating flexform content by parsing the XML. At least one of these possibilities shoud be implemented.

Create a page
Insert a plugin on that page containing flexforms (news, newloginbox or whatever)
translate the page
click on "copy default content elements" or go to the listview and localize the plugin by clicking on a flag
now edit the translated plugin and you will see the whole XML-mess below the input fields.

Is there any reason why original content is shown in translated versions by default? - IMHO this should be an option that is disabled by default but could be enabled when necessary.
(issue imported from #M1169)


Files

class.t3lib_tceforms.php.bug1169.patch (1.36 KB) class.t3lib_tceforms.php.bug1169.patch Administrator Admin, 2005-12-12 12:32
Actions

Also available in: Atom PDF