---
title: "Comments im Body-Tag einfügen"
url: "https://www.typo3.net/d/507-comments-im-body-tag-einfuegen"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Frage","Templates & Layouts"]
created: "2002-11-04"
last_reply: "2002-11-04"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Comments im Body-Tag einfügen

TYPO3 › TypoScript · 1 Antwort · gestartet 2002-11-04

## Eröffnungsbeitrag

**Roland-KS** · 2002-11-04 · [Beitrag #1](https://www.typo3.net/d/507-comments-im-body-tag-einfuegen/1)

Ich möchte gerne einige Bereiche (Marker und  Subparts) im HTML-Code kommentieren.
Da Typo3 aber den Template-Code von Subparts komplet löscht - wie geht das ?
z.B.
<!-- Beginn Grafikblock -->
<table>
<tr> ....
 ......
</tabe>
<!-- Ende Grafikblock -->

## Antworten

### [#2](https://www.typo3.net/d/507-comments-im-body-tag-einfuegen/2) · SolarUwe · 2002-11-04

Hallo Roland-KS,

Du könntest jeweils vor bzw. hinter den Subpart-Markern den eigentlichen Comment in Dein html-Template einfügen, z.B. so:

<!-- Beginn Grafikblock -->
<!--###GRAFIK_BLOCK###  start-->
<!---
<table>
<tr> ....
......
</tabe>
<!--###GRAFIK_BLOCK###  stop-->
<!-- Ende Grafikblock -->
Dann würden Deine Comments stehen bleiben.

Alternativ müsste es auch gehen, wenn Du die Comments durch TS Setup ausgeben lässt, z.B. den gesamten Subpart GRAFIK_BLOCK mit Deinen Coments wrappst, so à la

subparts.GRAFIK_BLOCK = IREGENDWAS
subparts.GRAFIK_BLOCK{
  ...
  ...
  wrap = <!-- Beginn Grafikblock --> | <!-- Ende Grafikblock -->
}

Viel Erfolg jedenfalls,
UWE.

*[ Diese Nachricht wurde geändert von: SolarUwe am 2002-11-04 19:37 ]*

---

Quelle: „Comments im Body-Tag einfügen“, typo3.net, https://www.typo3.net/d/507-comments-im-body-tag-einfuegen
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
