-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] By default generate classes for body tag for nuxt-typo3
- By default generate pid-[PageID] class & layout-[layout-name] for body tag - TYPO3 dev can expand default classes via `page.bodyTagAdd` (attributes, are merged, class attribute is also merged by default), so if dev adds custom class via `page.bodyTagAdd` result will be for example `class="pid-1 layout-layout-0 custom-class"`. If BE wants to completely overwrite values of body attributes it should communicate it via `config.headless.overwriteBodyTag = 1`. Flag changes behaviour by overwriting default values by values of `page.bodyTagAdd`
- Loading branch information
1 parent
328d11c
commit a6cf34b
Showing
2 changed files
with
115 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters