Hi,
wenn ich einen neuen Bild-Datensatz anlege, wird mir das einzufügende Bild im Backend ganz normal angezeigt. Wenn ich mir die Seite jedoch im Frontend angucke, ist das nicht der Fall. Das komische ist jedoch, dass sämtliche Informationen wie Bildtext angezeigt werden, ein IMG-Tag jedoch komplett fehlt. Hat jemand eine Idee? Dieses Problem trat auf, nachdem ich die ersten Experimente mit einem zweiten Template durchzuführen versuchte. Seiten, bei denen Bilder vor der Modifikation eingefügt wurden, funktionieren nach wie vor. Jedes Bild, was jedoch jetzt eingefügt wird, ist nicht mehr sichtbar.
Ich nutze Typo3 v4.0.2.
Hier ist ein Auszug aus meinem Typoskript:
page = PAGE
page.config.doctype = xhtml_trans
page.typeNum = 0
page.10 < temp.mainTemplate
page.headerData.10 < temp.headTemplate
config {
simulateStaticDocuments = 0
baseURL = [...]
tx_realurl_enable = 1
}
# Configuring the Auto-Parser:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/index.html
# Here we define which elements in the HTML that
# should be wrapped in subpart-comments:
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
DIV.all = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/
}
page.includeLibs.usermenu = fileadmin/userfunctions.php
temp.menu_links_container = HMENU
temp.menu_links_container{
special = directory
special.value = 1
1 = TMENU
1.wrap = <ul>|</ul>
1.NO = 1
1.NO.linkWrap = <li>|</li>
1.ACT = 1
1.ACT.linkWrap = <li id="activ_mp">|</li>
}
temp.header_menu_container = HMENU
temp.header_menu_container {
special = userfunction
special.userFunc = user_checkSubPages
1 = TMENU
1 {
expAll = 1
wrap = <ul id="nav">|</ul>
noBlur = 1
NO = 1
NO.wrapItemAndSub = <li>|</li>
IFSUB = 1
IFSUB.wrapItemAndSub = <li class="menuparent">|</li>
ACTIFSUB < .IFSUB
}
2 < .1
2.wrap = <ul>|</ul>
3 < .2
4 < .2
}
# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <body>-tags
workOnSubpart = DOCUMENT_BODY
subparts.headline_container = TEXT
subparts.headline_container.field = title
subparts.headline_container.wrap = <h1>|</h1>
subparts.PAGE_ID = TEXT
subparts.PAGE_ID.field = uid
subparts.menu_links_container < temp.menu_links_container
subparts.header_menu_container < temp.header_menu_container
subparts.content < styles.content.get
}
# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <head>-tags
workOnSubpart = DOCUMENT_HEADER
}