Zum Inhalt springen

tt_news 2.0.4 - Template bearbeiten

Erstellt am 27. April 2005 · 2 Antworten · letzte Antwort am 9. Mai 2005

Tags: Templates & Layouts, tt_news, Frage

chriscross ·

Hallo Zusammen,

ich habe das tt_news in meine Seiten eingebunden und das Template angepasst.
Jetzt möchte ich das neue Template einbinden, scheibar nimmt er aber nicht das geänderte Template.

Dieses ist der entsprechende Code im Template:

#TT_news
plugin.tt_news._CSS_DEFAULT_STYLE > 
plugin.tt_news.templateFile = typo3/ext/tt_news/pi/tt_news_tsv_template.html
plugin.tt_news.displayList.date_stdWrap.strftime = %A, %d. %B %Y
plugin.tt_news.displayList.subheader_stdWrap.crop = 150 | ... | 1


plugin.tt_news._CSS_DEFAULT_STYLE = /* default styles for extension "tt_news" *//*-----------------------------------  clearer  -----------------------------------*//* prevent floated images from overlapping the div-containers they are wrapped in  */.news-list-container HR.clearer, .news-single-item HR.clearer, .news-latest-container HR.clearer{clear:right;height:1px;border:1px solid #F9FFE5;}.news-latest-container HR.clearer {clear:left;}/*-----------------------------------  tt_news LATEST view  -----------------------------------*/.news-latest-container {width: 280px;	}.news-latest-container H2,.news-latest-gotoarchive {	color:#000;	padding:3px;	margin:3px;	}.news-latest-gotoarchive {}.news-latest-gotoarchive A:LINK, .news-latest-gotoarchive A:VISITED, .news-latest-gotoarchive A:HOVER {	color:#000;}.news-latest-gotoarchive A {	color:#000;}.news-latest-item{}.news-latest-item IMG {	margin-bottom:5px;	margin-right:5px;	border:1px solid #666;	float:left;}.news-latest-category IMG {	float: none;border:none;margin:0px;}.news-latest-date,.news-latest-morelink,.news-latest-category {	font-size:9px;}.news-latest-morelink {	height:12px;}.news-latest-morelink A {	float:right;}/*--------------------------------- tt_news LIST view  -----------------------------------.news-list-container {	}*/.news-list-item {}.news-search-form {padding:3px;	background-color:#F9FFE5;}.news-search-emptyMsg{margin:0px;}.news-search-form FORM {margin:0px;}.news-list-container H3 {	margin-bottom: 2px;	padding: 2px;}.news-list-container H3 A:LINK,.news-list-container H3 A:VISITED,.news-list-container H3 A:HOVER {	color:#000;padding-right:2px;}.news-list-container H3 A {	color:#000;}.news-list-container P {	padding-right:3px;}.news-list-date {	float: right;	width: 180px;	text-align: left;	height: 12px;	margin-top: 3px;	margin-right: 3px;	font-size: 10px;	font-weight: normal;	}.news-list-imgcaption {float: right;	padding-top:3px;	padding-right:3px;	font-size: 9px;	}.news-list-container IMG {		float: right;	border:1px solid #666;margin-bottom:5px;margin-right:2px;margin-left:5px;}.news-list-category IMG {	float: none;border:none;margin:0px;}.news-list-morelink,.news-list-category {	font-size:9px;margin-left:3px;}.news-list-morelink  {margin-bottom:3px;}.news-list-browse {	text-align: center;}	/*---------------------------------  tt_news Page-Browser ---------------------------------*/ .tx-ttnews-browsebox {	margin:3px;	border:1px solid #666;	padding:3px;	background-color:#F9FFE5;}.tx-ttnews-browsebox TD {	font-size: 10px;}.tx-ttnews-browsebox-strong, .tx-ttnews-browsebox-SCell {	font-weight: bold;}.tx-ttnews-browsebox-SCell P,.tx-ttnews-browsebox TD P{	margin:0px;}.tx-ttnews-browsebox-SCell {	background-color: #BBE53A;	border:1px solid #666;}.news-search-emptyMsg {	font-size: 11px;	margin-left: 10px;}	/*--------------------------------- tt_news SINGLE view  ---------------------------------*/.news-single-item {	padding:5px;	margin-bottom:5px;	border:1px solid #666;	background-color:#F9FFE5;}.news-single-item H2 {	font-size: 12px;	color: #85A600;	margin-bottom: 0px;}.news-single-item H3 {	margin-bottom: 15px;}.news-single-img {	float: right;margin-left:5px;}.news-single-imgcaption {	padding:3px;	clear:both;}.news-single-category {	float: right;}.news-single-backlink, .news-single-backlink a {	font-weight: bold;	font-size: 10px;	margin-bottom: 15px;	margin-top: 10px;}.news-single-timedata {	float: right;}.news-single-timedata, .news-single-author,.news-single-imgcaption {	font-size: 9px;}.news-single-author {	padding-bottom: 3px;}.news-single-additional-info {	background-color: #BBE53A;	clear: both;	margin-top: 15px;	border: 1px solid #666;padding:3px;padding-bottom:0px;}.news-single-related,.news-single-files,.news-single-links  {	border: 1px solid #666;margin:0px;	margin-bottom: 3px;padding:3px;	background-color:#F9FFE5;}.news-single-related DD, .news-single-links DD, .news-single-files DD {margin-left:20px;}.news-single-related DT, .news-single-links DT, .news-single-files DT {	font-weight: bold;	font-size: 11px;margin-left:5px;width:90%;}/*--------------------------------- tt_news Archivemenu (AMENU) --------------------------------- */.news-amenu-container {	margin-top:10px;	padding:3px;	border:1px solid #333;	background-color:#BBE53A;}.news-amenu-container LI {	padding-bottom:1px;}.news-amenu-container UL {	padding:3px;	margin-top:5px;	margin-left:0px;	margin-bottom:0px;	border:1px solid #666;	background-color:#F9FFE5;	list-style-type: none;}.news-amenu-container H2 {	color:#fff;	padding:3px;	border:1px solid #666;	background-color:#769024;}.news-amenu-item-year {	font-weight: bold;	border: 1px solid #666;	padding: 2px;	background-color: #769024;	color:#fff;}


plugin.tt_news.displayLatest.imageCount = 0
plugin.tt_news.displayLatest.categoryItem_stdWrap.wrap = <!-- | -->
plugin.tt_news.displayLatest.category_stdWrap.wrap = <!-- <div class="news-latest-category"> | </div>-->

mit
plugin.tt_news.templateFile = typo3/ext/tt_news/pi/tt_news_tsv_template.html
binde ich das neue Template ein.
Leider kann ich in diesem Template ändern was ich will, es tut sich nichts im Frontend.
Gibt es soetwas wie ein Default Template?

2. Frage (Ergänzung):
Welches css wird verwendet?

Vielen Dank im Voraus,

Christian

birgitr ·

mach es einfach so:

im "normalen" TS setup Deines Templates bindest Du das CSS ein und legst es im fileadmin ab. Oder Du kopierst das ganze tt_news CSS in Dein default CSS ein. Da die IDs einmalig sind, mußt Du das CSS nicht explizit der Extension zuordnen.

lG Birgit

M8TRIX ·

Hi chriscross,

wenn ich Änderungen an meinem News Template vornehme,
muss ich , um das Ergebnis auch tatsächlich zu sehen, erst in jeder meiner angelegten Seiten, wo das News Plugin eingebunden ist, mein Template dafür neu zuweisen.

Typo3 legt, nach einbinden über den Assistenten des Plugins zumindest bei mir, Temporär
die Datei an.

news_v2_template_09.html

Aktualisier einfach nochmal dort den Pfad Deines Templates:

Auf allen Seiten wo das News Plugin eingebunden wird:

-Plugin bearbeiten
-Template/Template Datei: Erneut Dein Template zuweisen.

Hoffe das hilft

lg sandra