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):
# -----------------------------
# 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 = <a href='http://localhost/käse_AP'></a> |
temp.position.1 {
# Normal state properties appending " > " to all elements but the last one.
# (See "optionSplit")
NO.allWrap = | > |*||*| |
}
}
# -----------------------------
# 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 = » <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