---
title: "P-Tags verschwinden im Frontend"
url: "https://www.typo3.net/d/21643-p-tags-verschwinden-im-frontend"
source: "typo3.net"
tags: ["Allgemein","Frage","Inhaltselemente"]
created: "2005-02-23"
last_reply: "2005-02-24"
replies: 4
solved: false
page: 1
pages: 1
lang: "de"
---

# P-Tags verschwinden im Frontend

Allgemein · 4 Antworten · gestartet 2005-02-23

## Eröffnungsbeitrag

**Beatz** · 2005-02-23 · [Beitrag #1](https://www.typo3.net/d/21643-p-tags-verschwinden-im-frontend/1)

Ich habe ein kleines Problem mit meinem Template. Und zwar werden im Frontend <p> Tags entfernt, also auch keine Absätze angezeigt. In der Datenbank und auch im Backend sind diese auch nach dem Speichern noch vorhanden. Dürfte also kein Problem mit allow- und denyTags sein.

Ich hatte bisher vermutet, dass es irgendwie mit der parseFunc zusammenhängt, konnte aber noch nichts feststellen.

Welche Möglichen Ursachen hat das Verschwinden des <p> Tags?

Anbei mal die SETUP meines Templates (Achtung, noch Baustelle):

```typoscript
# -----------------------------
# Email-Spamschutz
# -----------------------------

config.spamProtectEmailAddresses=1
config.spamProtectEmailAddresses_atSubst=(at)

# -----------------------------
# parseFunc
# -----------------------------

temp.main.parseFunc {
  allowTags = *
}

# -----------------------------
# Seitenpfad 
# -----------------------------

temp.position= HMENU 
  # Setting the special property to "rootline" - this will produce a "Path-menu" 
  temp.position.special = rootline
  temp.position.range = 0|0

  # First level menu-object, textual 
  temp.position.1 = TMENU 
  # Wrapping value for the whole menu: 
  temp.position.1.wrap = &nbsp;<a href='http://localhost/käse_AP'></a> &nbsp; | 
  temp.position.1 { 
    # Normal state properties appending " > " to all elements but the last one. 
    # (See "optionSplit") 
    NO.allWrap =   |&nbsp;&gt;&nbsp; |*||*|   | 
   } 
} 

# -----------------------------
# Inhaltsbereich
# -----------------------------

temp.maincontent = CONTENT
temp.maincontent < styles.content.get
temp.maincontent {
  table = tt_content
  select {
    pidInList = this
    orderBy = sorting
    where = colPos=0
    languageField = sys_language_uid
  }

  renderObj = COA
  renderObj.wrap = <table width="100%" cellspacing="0" cellpadding="0" border="0"><tr height="30"><td background="fileadmin/templates/psv/images/table/border_lo.gif" width="10"></td> | </td></tr></table></td><td background="fileadmin/templates/psv/images/table/border_m.gif" width="10"></td></tr><tr height="10"><td background="fileadmin/templates/psv/images/table/border_lu.gif" width="10"></td><td background="fileadmin/templates/psv/images/table/border_mu.gif"></td><td background="fileadmin/templates/psv/images/table/border_ru.gif" width="10"></td></tr></table>
  renderObj.10 = TEXT
  renderObj.10 {
    field = header
    wrap = <td background="fileadmin/templates/psv/images/topics/topic.gif" style="background-repeat:no-repeat;"><span style="font-family:Trebuchet MS,sans-serif;font-size:18px;font-weight:bold;color:#d25a0a;margin-left:35px;vertical-align:middle;"> | </span></td><td background="fileadmin/templates/psv/images/table/border_ro.gif" width="10"></td></tr><tr><td background="fileadmin/templates/psv/images/table/border_m.gif" width="10"></td><td><table cellpadding="8" cellspacing="0" border="0"><tr><td>
  }

  renderObj.30 = TEXT
  renderObj.30 {
    field = bodytext
    parseFunc.allowTags = p
    parseFunc.denyTags =
#    parseFunc< temp.main.parseFunc
  }

  renderObj.20 = IMGTEXT
  renderObj.20 {
  

    text < tt_content.text.default
    imgList.field = image
    textPos.field = imageorient
    imgPath = uploads/pics/
    imgObjNum = 1
    1 {
       file.import.current = 1
       file.width.field = imagewidth
       imageLinkWrap = 1
       imageLinkWrap {
         bodyTag = <BODY bgColor=black>
         wrap = <A href="javascript:close();"> | </A>
         width = 800m
         height = 600m
         JSwindow = 1
         JSwindow.newWindow = 1
         JSwindow.expand = 17,20
       }
    }
    maxW = 170
    maxWInText = 170
    cols.field = imagecols
    border.field = imageborder
    caption {
      1 = TEXT
      1.field = imagecaption
      1.wrap = <font size="1"> |</font>
    }
    borderThick = 2
    colSpace = 10
    rowSpace = 10
    textMargin = 10
  }
  30 = HTML
  30.value = <br>
  }
}

# -----------------------------
# Inhalt rechte Spalte
# -----------------------------

temp.rightcontent = CONTENT
temp.rightcontent < styles.content.getRight
temp.rightcontent {
  table = tt_content
  select {
    pidInList = this
    orderBy = sorting
    where = colPos=2
    languageField = sys_language_uid
  }

  renderObj = COA
  renderObj.10 = TEXT
  renderObj.10 {
    field = header
    wrap = <div class="topic_menu_rechts"> | </div>
  }

  renderObj.20 = TEXT
  renderObj.20 {
    field = bodytext
    #wrap = <div>aaa | bbb</div>
  }
}

# --------------------------------------------------
# Template zusammenfügen + Navigation
# --------------------------------------------------

# Template content object:
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
  template = FILE
  template.file = fileadmin/templates/psv/template.html
  workOnSubpart = DOCUMENT_BODY
  subparts.CONTENT< temp.maincontent
  subparts.CONTENT_RIGHT< temp.rightcontent
  subparts.PFAD< temp.position
  subparts.NAVIGATION1 = HMENU
  subparts.NAVIGATION1.1 = GMENU
  subparts.NAVIGATION1.1 {
  
    expAll = 1
    wrap =  |
    NO {
      XY = 100,30
      5 = IMAGE
      5.format = jpg
      5.file = fileadmin/templates/psv/images/bg/navigation1.jpg
      10 = TEXT
      10.text.field = title
      10.fontFile = fileadmin/fonts/Arial.TTF 
      10.fontSize = 10
      # offset bestimmt die vertikale Ausrichtung der Schrift
      10.offset = 0,22
      10.fontColor = #FFFFFF
      10.align = center
      10.before.cObject = TEXT
      10.before.cObject.field = uid
      # in der folgenden Zeile wird der Seitentitel als title-Tag in den Link hinein
      #generiert
      10.before.cObject.dataWrap = <a href="index.php?id=|"  title="{field:title}">
    }

    ACT < .NO
    ACT = 1
    ACT {
      5.file = fileadmin/templates/psv/images/bg/navigation1.jpg
      10.fontColor = #3E8B3D
      10.offset = 0,24
    }

    RO < .NO
    RO = 1
    RO {
      5.file = fileadmin/templates/psv/images/bg/navigation1_ro.jpg
      10.fontColor = #3E8B3D
    }
  }

  subparts.NAVIGATION2 = HMENU
  subparts.NAVIGATION2.entryLevel = -1
  subparts.NAVIGATION2.1 = TMENU
  subparts.NAVIGATION2.1 {
    expAll = 1
    NO {
      linkWrap = |
      doNotShowLink = 1
      before.cObject = TEXT
      before.cObject.field = uid
      before.cObject.dataWrap = &raquo; <a class="link_menu_rechts" href="index.php?id=|" title="{field:title}:{field:subtitle}">
      after.cObject = TEXT
      after.cObject.field = title//nav_title
      after.cObject.htmlSpecialChars = 1
      after.cObject.wrap = |</a><br>
    }
  }

}

# --------------------------------------------------
# temporäres Template an PAGE übertragen
# --------------------------------------------------
  
page = PAGE
page.typeNum = 0
page.stylesheet = main_01.css
 
page.10 < temp.mainTemplate
```

## Antworten

### [#2](https://www.typo3.net/d/21643-p-tags-verschwinden-im-frontend/2) · thebigtony · 2005-02-24

Versuch das mal

tt_content.text.20.parseFunc.denyTags =
tt_content.text.20.parseFunc.allowTags = *

### [#3](https://www.typo3.net/d/21643-p-tags-verschwinden-im-frontend/3) · Beatz · 2005-02-24

Hi Danke für Deine Antwort, das hatte ich leider schon ausprobiert, da ich es in diversen Forenbeiträgen und auch Dokumentationen gelesen hab. Leider will das nicht so. Ich bin schon bald am Verzweifeln.

Ich hatte auch schon probiert:

```typoscript
temp.maincontent {
  table = tt_content
  select {
    pidInList = this
    orderBy = sorting
    where = colPos=0
    languageField = sys_language_uid
  }
  text.20.parseFunc.denyTags = 
  text.20.parseFunc.allowTags = *
  ....
  ....
}
```

Wenn ich mit weiter unten im Setup mit

```typoscript
subparts.CONTENT< styles.content.get
```

arbeite, werden die <p> Tags einwandfrei angezeigt, jedoch verschwindet natürlich die ganze Formatierung, die ich in temp.maincontent vorgebe.

### [#4](https://www.typo3.net/d/21643-p-tags-verschwinden-im-frontend/4) · thebigtony · 2005-02-24

Schreib das mal ausserhalb Deines Anweisungsblocks

### [#5](https://www.typo3.net/d/21643-p-tags-verschwinden-im-frontend/5) · Beatz · 2005-02-24

Ich hatte die beiden Zeilen ganz oben im Setup stehen. Ging nicht. Clear all Cache mache ich auch immer.

---

Quelle: „P-Tags verschwinden im Frontend“, typo3.net, https://www.typo3.net/d/21643-p-tags-verschwinden-im-frontend
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
