Project

General

Profile

Actions

Bug #80427

closed

Using space_before_class and space_after_class in PageTS Config

Added by Sylvia Marler over 7 years ago. Updated 11 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2017-03-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
7.0
Tags:
fluid styled content
Complexity:
Is Regression:
No
Sprint Focus:

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.

Actions #1

Updated by Riccardo De Contardi over 7 years ago

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
        }
}
Actions #2

Updated by Ulrich Koch over 7 years ago

  • Description updated (diff)
Actions #3

Updated by Benni Mack over 7 years ago

  • Target version changed from 8 LTS to next-patchlevel
Actions #4

Updated by Susanne Moog about 7 years ago

  • Category changed from Content Rendering to Backend API
  • Status changed from New to Needs Feedback

See Riccardos comment. Is this still an issue?

Actions #5

Updated by taywa gmbh almost 7 years ago

  • Priority changed from Must have to Should have

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.

Actions #6

Updated by Alexander Opitz over 6 years ago

  • Status changed from Needs Feedback to Closed

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

Actions #7

Updated by Alexander Opitz over 6 years ago

  • Target version deleted (next-patchlevel)
Actions #8

Updated by Česlav Przywara over 6 years ago

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..?

Actions #9

Updated by Henning no-lastname-given over 6 years ago

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.

Actions #10

Updated by Alexander Opitz over 6 years ago

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.

Actions #11

Updated by Česlav Przywara about 6 years ago

Thanks Alexander, it works! :-)

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

Actions #12

Updated by Johannes Rebhan 11 months ago

  • TYPO3 Version changed from 8 to 12

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

Actions

Also available in: Atom PDF