Bug #15298
closedAdditional fields of pages table are not translated when using getText datatype
0%
Description
Hi,
I added a new field to both the pages and pages_language_overlay table:
tx_svoaddpageheader_pageheadline
The field shows up in the Alternative Page Language record as expected but when I receive the field value via
field = tx_svoaddpageheader_pageheadline
or
data = levelfield : -1 , tx_svoaddpageheader_pageheadline , slide
the default value will be shown instead of the translation.
So it seems that the translation mechanism that works for the default fields is not working for additional fields.
The only solution I see for now it to add a field to the pages table for each language required. Like:
tx_svoaddpageheader_pageheadline_en
tx_svoaddpageheader_pageheadline_fr
tx_svoaddpageheader_pageheadline_it
etc.
Which is confusing for editors as they have to add foreign language values both to the "alternative page language" records and the page properties dialogue.
What do you think? Should this be regarded as a bug? Can this be solved it the additional fields have the same names both in the pages and the pages_language_overlay table?
(issue imported from #M2070)
Updated by Andreas Wolf about 13 years ago
- Category changed from Communication to TypoScript
- Status changed from New to Needs Feedback
- Target version deleted (
0) - TYPO3 Version changed from 3.8.0 to 4.0
- PHP Version deleted (
4)
Is this still valid for 4.5/4.6?
The version assignment to 4.0 is just a rough guess based on the age of the bug...
Updated by Tilo Baller about 12 years ago
New fields need to be added to the 'pageOverlayFields' configuration in your localconf.php/ext_localconf.php like so:
$TYPO3_CONF_VARS['FE']['pageOverlayFields'] .= ',tx_svoaddpageheader_pageheadline';
That should resolve the issue.
Updated by Jigal van Hemert almost 12 years ago
- Status changed from Needs Feedback to Closed
No feedback for over 90 days, solution given seems correct. Closed.