Hallo Community
Bei mir ergibt sich nach einem Serverumzug ein Problem bei tt_news und dem Verkleinern von Bildern im SingleView.
Im Latest und List werden die Bilder ohne Probleme verkleinert und sind im Pfad typo3temp/pics/ zu finden.
Nur im SingleView wenn die News einzeln angezeigt wird, werden die Bilder als Original aus dem Pfad uploads/pics/ geholt, was dann schon mal gewaltig das Design sprengt.
Dieses Problem tauchte erst nach einem Serverwechsel auf, bei dem ich von einem Server mit ImageMagick auf einen ohne wechseln mußte.
Auf den neuen Server mußte ich daher die Extension jb_gd_resize nachinstallieren. Die Extension funktioniert problemlos, da sonst Latest und List nicht verkleinert würden und es bei normalen tt_content Probleme gäbe
Habe schon zahlreiche Versuche gemacht die Größe zu beeinflussen.
Bei Konstanten und Konfiguration im Template folgende Werte angelegt.
plugin.tt_news.displaySingle.image.file.maxW = 630
plugin.tt_news.displaySingle.image.file.maxH = 630
plugin.tt_news.singleMaxW = 630
plugin.tt_news.singleMaxH = 630
plugin.tt_news.displaySingle.image.imageLinkWrap.width = 630
plugin.tt_news.displaySingle.image.imageLinkWrap.height = 630
Habe auch ein extra Untertemplate für SingeView angelegt und diese Werte verwendet
Auch in der Plugin-Steuerung des Inhaltselements habe ich die Werte eingetragen.
Template -> Maximale Breite für Bilder in Newsbeiträgen
Kategorie Einstellungen -> Maximale Breite für Kategoriebild
Sonstige Einstellungen -> Typoscript for this content element (plugin.tt_news.[your TS])
Alles führte zu keinem Ergebnis.
Im Objekt-Browser habe ich die Werte kontrolliert, dort werden sie auch als gesetzt angezeigt.
Ich schicke mal in meiner Verzweiflung die komplette Konfiguration mit.
temp.maintemplate= COA
temp.maintemplate {
10 = TEMPLATE
10 {
template = FILE
template.file = fileadmin/templates/page.html
}
}
temp.standardinhaltNews = RECORDS
temp.standardinhaltNews {
tables = tt_content
source = 10
dontCheckPid = 1
}
temp.stdheader < lib.stdheader
lib.stdheader >
lib.stdheader = CASE
lib.stdheader {
key.field=colPos
1 < temp.stdheader
2 < temp.stdheader
3 < temp.stdheader
default < temp.stdheader
}
lib.stdheader.1.10.1.fontTag (
<div class="BlockHeader">
<div class="header-tag-icon">
<div class="BlockHeader-text">
|
</div>
</div>
<div class="l"></div>
<div class="r"><div></div></div>
</div>
)
temp.tt_contenttext20 < tt_content.text.20
tt_content.text.20 >
tt_content.text.20 = CASE
tt_content.text.20 {
key.field=colPos
1 < temp.tt_contenttext20
2 < temp.tt_contenttext20
3 < temp.tt_contenttext20
default < temp.tt_contenttext20
}
tt_content.text.20.1.wrap (
<div class="BlockContent">
<div class="BlockContent-body">
<div>
|
</div>
</div>
</div>
)
temp.contentLeft < styles.content.getLeft
temp.contentLeft.renderObj.stdWrap.stdWrap {
required = 1
wrap (
<div class="Block">
<div class="Block-tl"></div>
<div class="Block-tr"><div></div></div>
<div class="Block-bl"><div></div></div>
<div class="Block-br"><div></div></div>
<div class="Block-tc"><div></div></div>
<div class="Block-bc"><div></div></div>
<div class="Block-cl"><div></div></div>
<div class="Block-cr"><div></div></div>
<div class="Block-cc"></div>
<div class="Block-body">
|
</div>
</div>
)
}
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = COA
content < temp.maintemplate
# Here we define which elements in the HTML that
# should be wrapped in subpart-comments:
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
P.class.page-footer = 1
DIV.class.nav = 1
DIV.class.sidebar1 = 1
DIV.class.Post-inner = 1
DIV.class.Post-inner.subpartMarker = content
DIV.class.Footer-text = 1
DIV.class.logo = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/templates/
}
# Configure tt_news to display the xml template
plugin.tt_news {
dontUseBackPid = 1
useHRDates = 1
useHRDatesSingle = 1
useHRDatesSingleWithoutDay = 1
displayXML {
rss2_tmplFile = EXT:tt_news/res/rss_2.tmpl
xmlFormat = rss2
xmlTitle = example.com: Latest News
xmlLink = http://localhost/
xmlDesc = Latest News
xmlLang = de
title_stdWrap.htmlSpecialChars = 1
title_stdWrap.htmlSpecialChars.preserveEntities = 1
subheader_stdWrap.stripHtml = 1
subheader_stdWrap.htmlSpecialChars = 1
subheader_stdWrap.htmlSpecialChars.preserveEntities = 1
subheader_stdWrap.crop = 100 | ... | 1
subheader_stdWrap.ifEmpty.field = bodytext
xmlLastBuildDate = 1
}
}
plugin.tt_news.displaySingle.image.file.maxW = 630
plugin.tt_news.displaySingle.image.file.maxH = 630
## This enables the xml news feed
xmlnews = PAGE
xmlnews {
typeNum = 100
10 >
10 < plugin.tt_news
10.pid_list >
10.pid_list = 2
10.singlePid = 13
10.defaultCode = XML
config {
disableAllHeaderCode = 1
additionalHeaders = Content-type:text/xml
no_cache = 1
xhtml_cleaning = 0
}
}
plugin.tt_news.displayList.title_stdWrap.editPanel = 1
plugin.tt_news.displayList.title_stdWrap.editPanel {
editPanel = 1
allow = edit,hide,delete,new
line = 5
label = %s
onlyCurrentPid = 0
previewBorder = 4
edit.displayRecord = 1
}
temp.nav = HMENU
temp.nav {
1 = TMENU
1.expAll = 1
1.wrap = <ul class="artmenu"> | </ul><div class="l"></div><div class="r"><div></div></div>
1.NO.wrapItemAndSub= <li>|</li>
1.NO.stdWrap.dataWrap = <span><span>|</span></span>
1.ACT = 1
1.ACT < .1.NO
1.ACT.ATagParams = class="active"
#2 < .1
}
config {
headerComment (
Diese Seite wurde erstellt von:
)
# realURL-Config
simulateStaticDocuments = 0
baseURL = {$config.baseurl}
tx_realurl_enable = 1
}
# Default PAGE object:
page = PAGE
page {
typeNum = 0
config {
doctype = xhtml_strict
xhtml_cleaning = all
// Mehrsprachigkeit
linkVars = lang
language = de
locale_all = de_DE
htmlTag_langKey = de
sys_language_mode = content_fallback
sys_language_uid = 0
}
}
[globalVar=GP:lang=nl]
page.config.sys_language_uid = 2
page.config.language = nl
page.config.locale_all = nl_NL
page.config.htmlTag_langKey = nl
[global]
page {
# CSS einbinden. ACHTUNG: Unten noch eine Weiche für den IE
includeCSS {
screen = fileadmin/templates/style.css
screen.media = screen,projection
}
meta {
TITLE = {$meta.title}
DESCRIPTION = {$meta.description}
DESCRIPTION.override.field = description
KEYWORDS.override.field = keywords
ROBOTS = follow, index
}
headerData {
90 = TEXT
90.value (
<meta name="geo.region" content="{$meta.geo.region}" />
<meta name="geo.city" content="{$meta.geo.city}" />
<meta name="zipcode" content="{$meta.zipcode}" />
<meta name="geo.state" content="{$meta.geo.state}" />
<meta name="geo.country" content="{$meta.geo.country}" />
<meta name="geo.placename" content="{$meta.geo.placename}" />
<meta name="geo.position" content="{$meta.geo.position}" />
<meta name="ICBM" content="{$meta.icbm}" />
)
}
10 = TEMPLATE
10{
# 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 {
nav < temp.nav
content < styles.content.get
content.wrap (
)
sidebar1 < temp.contentLeft
logo = TEXT
page-footer = TEXT
Footer-text = TEXT
Footer-text.value = {$titel.firmenname}
Footer-text.wrap = Copyright © 2010 |. Alle Rechte vorbehalten.
}
}
}
[browser = msie]
page.headerData.1 = TEXT
page.headerData.1.value (
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<script type="text/javascript" src="fileadmin/templates/script.js"></script>
)
[GLOBAL]
[version <= 6.0] && [browser = msie]
page.includeCSS {
screen_ie = fileadmin/templates/style.ie6.css
screen_ie.media = screen,projection
}
[GLOBAL]