Bug #86872

Add class of html tag to site configuration

Added by Jan Kiesewetter about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-11-06
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Before site configuration, I did something like this to add class and lang to html tag:

config {
  # ...
  htmlTag_setParams = lang="de" class="no-js" 
}
[globalVar = GP:L = 2]
  # ...
  config.htmlTag_setParams = lang="fr" class="no-js" 
[globalVar = GP:L = 3]
  # ...
  config.htmlTag_setParams = lang="it" class="no-js" 
[globalVar = GP:L = 4]
  # ...
  config.htmlTag_setParams = lang="en" class="no-js" 
[GLOBAL]

As lang now comes from site configuration, it would be nice to define the class there, too or in a additional property of config.


Related issues

Related to TYPO3 Core - Task #86854: Allow adding custom attributes on HTML-TagClosed2018-11-05

Actions
#1

Updated by Jan Kiesewetter about 2 years ago

I found a workaround to keep data from site configuration but add the class:

config {
  htmlTag_stdWrap {
    replacement {
      10 {
        search = >
        replace = class="no-js">
        replace.noTrimWrap = | ||
      }
    }
  }
}

But maybe there could be a smarter solution by adding it to site configuration or config as a standalone value.

#2

Updated by Georg Ringer about 2 years ago

  • Related to Task #86854: Allow adding custom attributes on HTML-Tag added
#3

Updated by Georg Ringer about 2 years ago

  • Status changed from New to Closed

I am closing this in favor of #86854

Also available in: Atom PDF