FluidTYPO3 / flux

TYPO3 extension Flux: Dynamic Fluid FlexForms
https://fluidtypo3.org
146 stars 212 forks source link

[BUG] Flux: label of container not shown #444

Closed denyskoch closed 10 years ago

denyskoch commented 10 years ago

The labels of flux:flexform.container are not shown. Any ideas?

<f:section name="Configuration">
    <flux:flexform id="default-config" label="Referenzen Unterseite" icon="EXT:lia_relaunch_louis_info_2014/ext_icon.gif">
        <flux:flexform.field.file allowed="jpg,jpeg,png" name="image" label="Minatur" />
        <flux:flexform.container name="branche" label="Branchen">
            <flux:flexform.field.checkbox name="hersteller" label="Hersteller" />
            <flux:flexform.field.checkbox name="haendler" label="Händler" />
            <flux:flexform.field.checkbox name="region" label="Für die Region" />
        </flux:flexform.container>
        <flux:flexform.container name="category" label="Kategorien">
            <flux:flexform.field.checkbox name="responsive" label="Responsive" />
            <flux:flexform.field.checkbox name="onlineshop" label="Online Shop" />
            <flux:flexform.field.checkbox name="seo" label="SEO" />
            <flux:flexform.field.checkbox name="sitelaunch" label="Site Launch" />
        </flux:flexform.container>
    </flux:flexform>
</f:section>

bildschirmfoto 2014-01-24 um 09 47 02

aksenovaa commented 10 years ago

Yes, all the same, using a development version... Labels disappeared, I think it is related to LLL rewriting feature. Have recently been associated with this change - used xlf files and all that. Then stopped working these functions, all tags disappeared. [TASK] Evict LLL rewriting feature #422 - I think it's just due. Disappeared setting - Development stage rewriting of LLL files... That it meant, and what entails surprises - not commented ..

NamelessCoder commented 10 years ago

Hi guys,

It's actually a core bug: https://review.typo3.org/#/c/26482/

...and a rather annoying one at that. The only way to "fix" it is to increase dependency on legacy functions - the right way to fix it is to make the core use what it prescribes, instead of the at this point ancient tx_templavoila wrapper element.

Sorry to just close it - feel free to help me pass the core bug patch through ;)

Cheers, Claus

NamelessCoder commented 10 years ago

PS: issue affects both Section, Container and Object - causing inconsistent behavior. The core patch that's submitted should fix all the cases.

aksenovaa commented 10 years ago

If I understand correctly, In disappearance marks blame kernel bug... On TYPO3 6.1 I corrected typo3/sysext/backend/Classes/Form/FormEngine.php

$newElementsLinks[] = '<a href="#" onclick="' . htmlspecialchars($onClickInsert) . '">' . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-document-new') . htmlspecialchars(\TYPO3\CMS\Core\Utility\GeneralUtility::fixed_lgd_cs($this->sL($nCfg['title']), 30)) . '</a>';

$nCfg['tx_templavoila']['title'] to $nCfg['title']