Einzelnen Beitrag anzeigen
  #5  
Alt 27.05.08, 11:51
webschnecke webschnecke ist offline
Forum Stammgast
 
Registriert seit: 20.11.07
Beiträge: 125

Das ist mein TS von der Seite in der die News in der List und Single Ansicht sind.



Typoscript-Code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
#NEWS
seite = PAGE
seite {
typeNum=0
meta.AUTHOR = agenCi - Corporate Design & more.
meta.DESCRIPTION = Hier gibt es Hundefutter
stylesheet=fileadmin/template/xxx/css/style.css
shortcutIcon = fileadmin/template/xxx/images/favicon.ico
headerData.500 = TEXT
headerData.500.value = <link rel="alternate" type="application/rss+xml" title="RSS-Feed" href="http://www.xxx.de/index.php?id=57&type=100" />

10 = TEMPLATE
10 {
template = FILE
template.file = fileadmin/template/xxx/news.html
workOnSubpart = DOKUMENT


marks{
METANAV = HMENU
METANAV.special = directory
METANAV.special.value = 9
METANAV.1 = TMENU
METANAV.1.NO = 1
METANAV.1.NO.linkWrap = &nbsp;
METANAV.1.NO.ATagParams = id="metanav"




HEADLINE = IMAGE
HEADLINE.file = GIFBUILDER
HEADLINE.file {
XY= 500,25
10 = TEXT
10.text.field = title
10.fontSize = 15
10.fontFile = fileadmin/fonts/verdanab.TTF
10.fontColor = #413d3d
10.niceText = 0
10.offset = 0, 19
}

SUBLINE = IMAGE
SUBLINE.file = GIFBUILDER
SUBLINE.file {
XY= 300,15
10 = TEXT
10.text.field = subtitle
10.fontSize = 12
10.fontFile = fileadmin/fonts/verdana.TTF
10.fontColor = #413d3d
10.niceText = 0
10.offset = 0, 12
}

SEKNAV = CONTENT
SEKNAV {
table = tt_content
select.orderBy = sorting
select.where = colPos = 1
}

CONTENT = CONTENT
CONTENT {
table = tt_content
select.orderBy = sorting
select.where = colPos = 0
}

RECHTS = CONTENT
RECHTS {
table = tt_content
select.orderBy = sorting
select.where = colPos = 2
}






}
}
}


#NEWS :: Diverse Templates
plugin.tt_news {
templateFile = fileadmin/template/xxx/news/xxx.html
archiveTitleCObject {
10.strftime = %B - %Y
}

getRelatedCObject {
20.strftime = %d.%m.%Y %H:%M
}

displaySingle {
date_stdWrap.strftime= %A %d. %B %Y
time_stdWrap.strftime= %d.%m.%y %H:%M
}

displayLatest {
date_stdWrap.strftime= %A %d. %B %Y
time_stdWrap.strftime= %d.%m.%y %H:%M
}

displayList {
date_stdWrap.strftime= %A %d. %B %Y
time_stdWrap.strftime= %d.%m.%y %H:%M
}
displayList.subheader_stdWrap {
crop = 200 | [...] | 1
ifEmpty.field = bodytext
}
}



plugin.tx_veguestbook_pi1 {
templateFile = fileadmin/template/xxx/news/guestbook_template.html
allowedTags = <a>,<br>,<b>,<li>,<ol>,<p>,<strong>,<u>,<ul>
datetime_stdWrap.strftime= %A %d.%m.%Y %H:%M
teaser.datetime_stdWrap.strftime= %A %d.%m.%Y
date_stdWrap.strftime= %d.%m.%y
time_stdWrap.strftime= %H:%M
emoticons {
active = 0
10 = IMAGE
10 {
file = EXT:ve_guestbook/pi1/emoticons/###EMOTICON###.gif
params = hspace=1 vspace=1 valign=bottom
border = 0
altText = Emoticon
titleText = Emoticon
}
subst {
11.str = :D
11.val = 1
12.str = :smile: || :smile:
12.val = 2
13.str = :sad: || :sad:
13.val = 3
14.str = :cry:
14.val = 4
15.str = :?:
15.val = 5
16.str = ;) || ;-)
16.val = 6
}

}
}


#Google Analytics
config.tx_m1_google_analytics {
account = UA-3554014-2
trackExternalPrefix = .external - ERROR: Line 159: The script is short of 1 end brace(s)


Constants:

Typoscript-Code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
plugin.tx_timtab.homePid = 2
plugin.tt_news.backPid = 8

plugin.tt_news.datetimeDaysToArchive = 10
plugin.tt_news.displayXML.xmlTitle = [url=http://www.xxx.de:]Forward Latest News
plugin.tt_news.displayXML.xmlLink = [url=http://www.xxx.de]Forward
plugin.tt_news.displayXML.xmlDesc = Latest news from [url=http://www.xxx.de]Forward
plugin.tt_news.displayXML.xmlLang = de
plugin.tt_news.displayXML.xmlLimit = 10
plugin.tt_news.displayXML.xmlCaching = 1


plugin.tt_news.displayXML.rss2_tmplFile = EXT:tt_news/res/rss_2.tmpl
plugin.tt_news.catTextMode = 2
plugin.tt_news.showCatRootline = 0
plugin.tt_news.useSubCategories = 0
plugin.tt_news.displaySubCategories = 0
plugin.tt_news.showRelatedNewsByCategory = 0
plugin.tt_news.useSPidFromCategory = 0
Mit Zitat antworten