Zum Inhalt springen

News Table Color und News Single Sicht

Erstellt am 6. Juni 2006 · 4 Antworten · letzte Antwort am 7. Juli 2006

Tags: tt_news, TYPO3 4, Frage

hutter ·

Hallo zusammen.

Ich habe bereits ein typo3 Projekt erstellt und möchte jetzt mein 2tes Projekt realisieren. Dabei habe ich auf Version 4.0 implementiert.

Bei den News werde ich jetzt aber nicht mehr schlau.

Problem:
- Es zeigt mir die Single News nicht an.
- Wo ändere ich die Tabellenfarbe?

Ausgangslage:
Typo3 V4.0
Plugin.tt_news
Plugin.news
- Übersicht der News funktioniert einwandfrei über News Plugin mit "Latest"
- Archiv funktioniert auch

Mein Hilfeaufruf:
- Wenn ich auf den More-Link klicke gelange ich tadellos auf die Single Seite, jedoch wird mir da der Inhalt nicht angezeigt (leere Seite)
=> In der Single Seite habe ich eingestellt:
"Single" mit dem Ausgangsordner

Was mache ich noch falsch, resp. welche Einstellungen fehlen noch?!? Bitte um Hilfe!

Farben im News:- Weiter kann ich die schrecklichen Farben von meinen News nicht ändern => Im Template habe ich leider nichts gefunden. Kann mir jemand sagen, welche Constante dafür zuständig ist für den Tabellenhintergrund?

=> Ist eigentlich ein eigenes News-Template pflicht? Bis auf die Singleseite funktioniert sonst alles?!?

Mein Template:
Constants:
bgCol = #FF0A09
menu.bgCol = #FF0A09
file.logo = LogoZugVogel*.gif
styles.content.loginform.pid = 14
styles.content.imgtext.captionSplit = 1
cSet.tableCellColor = gray
cSet.color2 = red
cSet.color1 = red
cSet.fontFace = Tahoma
styles.content.lastUpdate.label = designed by mh - letzte aktualisierung:
styles.sitemap.text.target = _top
page.menuXDistance = 10
contentOffset = 10,10
leftFrameWidth = 220
plugin.tt_guest.color3 = #B02E3F
plugin.tt_guest.color1 = #B02E3F
plugin.tt_guest.color2 = #B02E3F
styles.sitemap.gs.color = silver
styles.sitemap.gs.wrap1 = <b><font size="1" face="Tahoma, Verdana, Arial, Helvetica, Tahoma,|

sans-serif" color="white"> | </font></b>
styles.sitemap.gs.headerWrap = <div align="center"><b><font size="2" face="Tahoma, Verdana,|

Arial, Helvetica, Tahoma, sans-serif" color="white"> | </font></b></div>
plugin.tt_board_tree.color3 = #B02E3F
plugin.tt_board_tree.color2 = #B02E3F
plugin.tt_board_tree.color1 = #B02E3F
styles.content.lastUpdate.wrap = <br /><font size="1" face="tahoma">|</font><br />
plugin.feadmin.dmailsubscription.email = info@blackmesh.ch
plugin.feadmin.dmailsubscription.emailName = blackmesh
plugin.tt_links.labelfont = Tahoma
plugin.tt_links.datafont = Tahoma
plugin.tt_links.titlefont = Tahoma
link = silver
vlink = gray
alink = white
page.L0.titleWrap = <b><font face="Tahoma" size="5" color="black"><i> | </i></font></b>
page.L1.titleWrap = <font face="Tahoma" size="4" color="black"><b> | </b></font>
cSet.fontFace.text = Tahoma
styles.content.mailform.badMess = Bitte füllen Sie Alle Felder aus!
styles.content.mailform.goodMess = Daten wurden gesendet...

damit befassen!
styles.content.searchform.goodMess = Ihre Suchergebnisse
GIFBUILDER_logo = 0
menu.L1.fontWrap = <font face="Arial" size="1" color="#CAEFF0"> | </font>
menu.L0.fontWrap = <font face="Arial" size="2" color="black"><b> |</b></font>
plugin.tt_products.wrap2 = <font face="tahoma" size="1" color="red"> | </font>
plugin.tt_products.wrap1 = <font face="tahoma" size="2" color="red"> | </font>
plugin.tt_products.color2 = #B02E3F
plugin.tt_products.color3 = #B02E3F

plugin.meta.language = de
plugin.meta.copyright = copyright by manuel hutter 2006
plugin.tt_calender.fontFace = tahoma
styles.content.textStyle.color = #B02E3F
content.defaultHeaderType = 1
styles.header.gfx1.fontColor = #B02E3F
styles.header.gfx1.reduceColors = 16
styles.content.tableStyle.color = gray
plugin.feadmin.dmailsubscription.wrap2 = <font face="tahoma" size="1" color="white"> | </font>
plugin.feadmin.dmailsubscription.wrap1 = <font face="tahoma" size="2" color="white"> | </font>

#Hier muss die ID von single news angegeben werden
plugin.tt_news {
singlePid = 27
}

styles.content.lastUpdate.comment_auto =
styles.content.getNews.newsPid = 1
plugin.tt_news.color3 = silver
styles.content.imgtext.borderColor = #FF0A09
styles.content.links.extTarget = _blank
menu.file.bullet = bullet1_n_neu*.gif

page.menuYDistance = 0
contentWidth = 770
styles.content.loginform.goodMess = Herzlich Willkommen im Sonnentaler Forum
styles.sitemap.text.totalWrap = <font face="arial" size="1"> | </font>
styles.content.imgFrames.comment_bottom =
styles.content.typo3_powered.number =
styles.sitemap.gs.wrap2 = <font face="Tahoma, Verdana, Arial, Helvetica, sans-serif" size="1">|</font>
styles.sitemap.gs.wrap3 = <font face="Tahoma, Verdana, Arial, Helvetica, sans-serif" size="1">|</font>
content.wrap.header1 = <font face="{$cSet.fontFace}" size="2" color="white"><b> | </b></font>
content.wrap.header2 = <font face="{$cSet.fontFace}" size="{$cSet.size2}" color="white"><b> |

</b></font>
content.wrap.header3 = <font face="{$cSet.fontFace}" size="4" color="white"><b> | </b></font>
content.wrap.header4 = <font face="{$cSet.fontFace}" size="5" color="white"><b> | </b></font>
content.wrap.subheader1 = <font face="{$cSet.fontFace}" size="{$cSet.size2}" color="{$cSet.color}"> | </font>
content.wrap.subheader2 = <font face="{$cSet.fontFace}" size="{$cSet.size1}" color="{$cSet.color}"><b> | </b></font>
content.wrap.subheader3 = <font face="{$cSet.fontFace}" size="{$cSet.size1}" color="{$cSet.color2}"><b> | </b></font>
plugin.tt_products.color1 = #8A9A9A
plugin.tt_news.wrap1 = <font face="tahoma" size="2" color="black"> | </font>
plugin.tt_news.wrap2 = <font face="tahoma" size="1" color="black"> | </font>

plugin.tt_board_tree.wrap2 = <font face="tahoma" size="1" color="white"> | </font>
plugin.tt_board_tree.wrap1 = <font face="tahoma" size="2" color="white"> | </font>
plugin.tt_board_tree.wrap3 = <font face="tahoma" size="2" color="white"> | </font>
plugin.tt_board_list.wrap2 = <font face="tahoma" size="1" color="white"> | </font>
plugin.tt_board_list.wrap1 = <font face="tahoma" size="2" color="white"> | </font>
plugin.tt_board_list.wrap3 = <font face="tahoma" size="2" color="white"> | </font>
plugin.meta.distribution = manuel hutter
plugin.meta.author = manuel hutter
plugin.meta.keywords = Sonnental, Sonnentaler, Zugvögel, Zugvogel, Zugvoegel, Fasnacht

Clique
plugin.meta.robots = all
plugin.meta.description = Sonnentaler Zugvögel
plugin.feadmin.fe_users.wrap2 = <font face="tahoma" size="1" color="white"> | </font>
plugin.feadmin.fe_users.wrap1 = <font face="tahoma" size="2" color="white"> | </font>
plugin.gsipopup.scrollbars = no
plugin.gsipopup.resizable = no
plugin.gsipopup.menubar = no
plugin.gsipopup.toolbar = no
styles.content.meta.site_keywords = zugvögel, sonnental, fasnacht, fasnachtsclique
styles.content.meta.site_description = Die Sonnentaler Zugvögel sind immer auf Achse
page.lineCol = #666666
page.lineHeight = 1
page.file.bgImg = Hintergrund_Zugvoegel_final_r*.jpg
menu.file.bgImg = Hintergrund_Zugvoegel_final_l*.jpg
menu.file.bullet_RO = bullet1_hover*.gif
plugin.tt_news.singlePid = 27
content.tableCellColor = silver

styles.content.links.sword = <font color="blue"><b>|</b></font>
content.splash.bgCol = silver
plugin.meta.revisit = 10
plugin.tt_news.showCatRootline = 1
plugin.tt_news.useSPidFromCategory = 1
plugin.tt_news.color1 = silver
plugin.tt_news.color2 = silver
plugin.tt_news.color4 = silver
plugin.tt_news.PIDitemDisplay = 27
cSet.pageColor = red

Setup:config.language = de

tt_content.menu.20.2 < styles.sitemap.gs

#Alles mit dem

#Newssticker---------------------------------------------------------------------------------

plugin.tt_news {
archiveTypoLink.parameter = 28
limit = 5
displayList {
image.file.maxW = 160
imageWrapIfAny (
<table align="left" bgcolor="#B02E3F" cellpadding="1" cellspacing="0" border="0">
<tr><td>
<table bgcolor="#B02E3F" cellpadding="0" cellspacing="0" border="0">
<tr><td> | </td></tr>
</table>
</td></tr>
</table>
)
}
displaySingle {
image.file.maxW = 200
imageWrapIfAny (
<table align="left" bgcolor="#B02E3F" cellpadding="1" cellspacing="0" border="0">
<tr><td>
<table bgcolor="#B02E3F" cellpadding="0" cellspacing="0" border="0">
<tr><td> | </td></tr>
</table>
</td></tr>
</table>
)
image.wrap (
| <br />
<img src="clear.gif" width="1" height="3" alt="" />
)
caption_stdWrap.wrap (
<div align="center">
<font face="tahoma" size="1">
<i>|</i>
</font>
</div>
<img src="clear.gif" width="1" height="5" alt="" /><br />
)
}
}

#Schutz für die Email Adresse vor

#Hackern-------------------------------------------------------------------
config.spamProtectEmailAddresses = 2
config.spamProtectEmailAddresses_atSubst = (at)

#Logo anpassen-----------------------------------------------------------
left.70.if.isTrue = {$GIFBUILDER_logo}
left.70 = IMAGE
left.70.file = GIFBUILDER
left.70.file {
XY = 150,200
backColor = {$menu.bgCol}
10 = IMAGE
10.file = {$file.logo}
}

Ich bin der Meinung, dass ich die Installation nach Angaben auf der Doku gemacht habe.

Bitte um Mithilfe...ist für eine Fasnachtsclique in freiwilliger Leistung aus der Schweiz...

Gruess und Danke - Manuel

Gernott ·

ich würde an Deiner Stelle mit dem Template arbeiten!!!
Trag das im Template - Setup Feld ein:

plugin.tt_news {
templateFile = fileadmin/temp_news.htm
}

und dann kopiere die Datei news_template.tmpl oder tt_news_v2_template.html (wenn du mit CSS arbeitest) von /typo3conf/ext/tt_news/pi/ in den Ordner fileadmin (und benenne Sie um nach temp_news.htm - oder wie du sie immer nennen magst).
Dort kannst Du ganz einfach das HTML anpassen, und eigene CSS Klassen verwenden ;-)

Bsp:

<!-- ###TEMPLATE_LIST### begin -->
	<!-- ###CONTENT### begin -->
		<!-- ###NEWS### begin -->
<div class="aktuelles">
			  <div class="bild">###NEWS_IMAGE###</div>
			  <span class="head2">###NEWS_TITLE###</span><br />
			  <strong>###NEWS_DATE###</strong><br />
			###NEWS_SUBHEADER###
			<span class="link"><!--###LINK_ITEM###-->###MORE###<!--###LINK_ITEM###--></span>
</div>
		<!-- ###NEWS### end-->
	<!-- ###CONTENT###  end -->
<!-- ###TEMPLATE_LIST### end -->
hutter ·

Hallo Gernott!!!

Hammer Sache, voll cool...Habe alles so gemacht, wie du es mir gesagt hast und es funktioniert wunderbar :-)

Ist einfach Klasse Sache dieses Forum!!! So eine Menge guter Leute :-)))

Vielen Dank für deine Bemühungen!

Lieber Gruss - Hutter
#giggle# #giggle# #giggle#

hutter ·

Hallo Gernott

Ich habe noch ein mittelgrosses Problem mit der SinglePid!!!

Auf der Startseite erstellt es mir die News wunderbar im Teaser...wenn ich dann aber auf den Titel oder auf [mehr] klicke, dann verweist es mich auf den folgenden Link:
"http://server34.hostpoint.ch/~sonni9/typo3wamp/index.php?id=27&type=1&tx_ttnews[pS]=1152214745&tx_ttnews[tt_news]=2&tx_ttnews[backPid]=20&cHash=38743ffffe"

Meine SingleNews Seite ist nun aber nicht 27, sondern 22...

Ich habe überall diese ID eingestellt und weiss nicht mehr wo noch suchen?!?

Wenn ich auf "zum Archiv" klicke funktionieren die Links auf die SingleSeite wunderbar und auch wieder zurück...nur auf dem Teaser konnte ich die PID leider noch nicht finden...kann ich es auch in dem Template hartcodieren???

Gruess Manuel Hutter

Christian_sps ·

Schau mal in den "Constant Editor" der tt_news Extension 😉 Dort einfach die entsprechenden Punkte anklicken.

Hier aber nochmal die Konstanten (einfach abändern und ins Haupt oder Extensiontemplate packen ):

plugin.tt_news.pid_list = xxx
plugin.tt_news.singlePid = xxx
plugin.tt_news.archiveTypoLink.parameter = xxx
plugin.tt_news.latestLimit = x # ( nicht nötig aber praktisch ;) )