Issue Bug Closed

#80427Using space_before_class and space_after_class in PageTS Config

Sylvia Marler 03/24/17, 10:21 updated 12/19/23, 12:42

Description

TCEFORM.tt_content.space_before_class and TCEFORM.tt_content.space_after_class is not configurable by the integrator:

It should be

TCEFORM.tt_content {
space_before_class {
altLabels {
none = kein Abstand
}
default = extra-small
}
space_after_class {
altLabels {
none = kein Abstand
}
default = extra-small
}
}

The none-label cannot be translated and it is not possible to define a default class.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 12

  1. Riccardo De Contardi commented 04/09/17, 00:54

    the “none” option has an empty value, I think that this is why TCEFORM.tt_content.space_before_class.altLabels does not work.
    I guess that you should override LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:space_class_none to translate it… I don’t know if there are other ways to do so.

    About your other problem (Set a default value) that’s the wrong way to do. Try:

    TCAdefaults {
            tt_content{
               space_before_class = extra-small
            }
    }
  2. Ulrich Koch changed description 04/12/17, 11:42

  3. Benni Mack changed target version 05/04/17, 17:47

  4. Susanne Moog commented and changed category status New Needs Feedback 10/27/17, 12:36

    See Riccardos comment. Is this still an issue?

  5. taywa gmbh commented and changed priority Must have Should have 12/06/17, 12:25

    how can LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:space_class_none be overridden in TS setup or TS config?
    “None” is confusing for editors in this context: it implies there is no whitespace. this is wrong in most cases as there are other paddings/margins by default. A different label like “Default”, “Not set” or “” (empty) is better.

  6. Alexander Opitz commented and changed status Needs Feedback Closed 05/02/18, 16:02

    For locallang overwrite, take a look here: https://wiki.typo3.org/TypoScript_language_additions,_override

  7. Alexander Opitz changed target version 05/02/18, 16:02

  8. Česlav Przywara commented 05/04/18, 11:24

    Hi,

    I thought plugin.[PluginName]._LOCAL_LANG.[language:default|de|fr|...] is meant for front-end language overrides? I have no idea how to make it work in backend..?

  9. Henning no-lastname-given commented 05/23/18, 17:25

    I have the same problem. There should be a difference between “none” and “Default” and there is currently no way to override the label via TypoScript or altLabels.

  10. Alexander Opitz commented 05/28/18, 17:27

    The issue behind this is following:

    You can set altLabels by using the value of an item, for example

    TCEFORM.tt_content.space_before_class.altLabels.extra-small = foobar

    As the “none” fields have no value, this needed to be

    TCEFORM.tt_content.space_before_class.altLabels.. = foobar2

    Yes, you need the doubled points, to get an empty value to work.

  11. Česlav Przywara commented 11/08/18, 16:51

    Thanks Alexander, it works! :-)

    I believe this issue can be closed, as both reported problems seem to have solution..?

  12. Johannes Rebhan commented and changed TYPO3 Version 8 12 12/19/23, 12:42

    It seems the .. “hack” doesn’t work anymore. We just noticed that Default / Standard is always entered for the first value of the dropdown, even if there is an override with the hack:

    TCEFORM.tt_content.space_before_class.altLabels.. = foobar2