Project

General

Profile

Actions

Feature #40986

closed

Add a TS option to disable body tag generation

Added by Michael Kunze over 11 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
Start date:
2012-09-17
Due date:
% Done:

100%

Estimated time:
PHP Version:
5.3
Tags:
Complexity:
easy
Sprint Focus:

Description

When using TemplaVoila for page generation, you sometimes need to be able to set classes directly on the body tag from within TemplaVoila. Thus TV needs to generate the page's <body> tag.

Unfortunately, TYPO3 itself generates the <body> tag, too - so we have 2 body tags in the HTML document. To solve this problem, TYPO3 needs a way to not generate a <body> tag.

The attached patch introduces the "config.disableBodyTag" TypoScript option. When it is set, TYPO3's page generator does not generate a <body> tag at all.

Usage:

config.disableBodyTag = 1


Files

class.tslib_pagegen.php.patch (4.12 KB) class.tslib_pagegen.php.patch Michael Kunze, 2012-09-17 11:43
Actions

Also available in: Atom PDF