Hallo zusammen,
wir haben ein eigenes Modul entwickelt, welches nach bestimmten Kriterien einen TranslationExport bestimmter Inhalte in ein XML File macht.
"TranslationHandler.exportTranslatable(configuration, output, listener);"
Das funktioniert soweit auch ganz gut, aber das Attribut "maxInputLenght" wird nur bedingt mit in das XML File übertragen.
Wenn das Attribut an einem Feld in einer Seitenvorlage gesetzt ist wird es mit exportiert, wenn es an einem Feld in einer Absatzvorlage gesetzt ist, wird das Attribut leider nicht mit in das XML File exportiert.
Beispiel:
Seitenvorlage:
Formular:
<CMS_INPUT_TEXT
name="pt_headline1"
allowEmpty="no"
convertEntities="standard"
length="22"
maxInputLength="20"
noBreak="no"
useLanguages="yes">
<LANGINFOS>
<LANGINFO lang="*" label="Header Line 1" description="Please insert a header"/>
<LANGINFO lang="DE" label="Überschrift Zeile 1" description="Bitte geben Sie eine Überschrift ein"/>
</LANGINFOS>
</CMS_INPUT_TEXT>
XML Export:
<CMS_VALUE maxInputLength="20" name="pt_headline1">Überschrift Zeile 1</CMS_VALUE>
Absatzvorlage:
Formular:
<CMS_INPUT_TEXT
name="st_boxheadline"
allowEmpty="no"
convertEntities="standard"
maxInputLength="28"
singleLine="no"
useLanguages="yes">
<LANGINFOS>
<LANGINFO lang="*" label="Infobox headline" description="Please insert headline"/>
<LANGINFO lang="DE" label="Infobox-Überschrift" description="Bitte geben Sie hier eine Box-Überschrift ein"/>
</LANGINFOS>
</CMS_INPUT_TEXT>
XML Export:
<CMS_VALUE name="st_boxheadline">Teaser-Überschrift</CMS_VALUE>
Kennt jemand das Problem bzw. hat eine Lösung dafür?
Danke!
Tobi