Project

General

Profile

Actions

Bug #86872

closed

Add class of html tag to site configuration

Added by Jan Kiesewetter over 5 years ago. Updated over 5 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 1 (0 open1 closed)

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

Actions
Actions #1

Updated by Jan Kiesewetter over 5 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.

Actions #2

Updated by Georg Ringer over 5 years ago

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

Updated by Georg Ringer over 5 years ago

  • Status changed from New to Closed

I am closing this in favor of #86854

Actions

Also available in: Atom PDF