Einzelnen Beitrag anzeigen
  #1  
Alt 16.09.06, 07:53
labskaus labskaus ist offline
Forum Newbie
 
Registriert seit: 27.05.06
Alter: 35
Beiträge: 33

Mal geht es, mal nicht


Moin,
nachdem ich mein typo3 Projekt importiert habe, habe ich Probleme mit dem News Modul.

main template
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:
# Definition des Body
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
# Übergabe des Templates
template =< plugin.tx_automaketemplate_pi1

# Subpart Aussuchen
workOnSubpart = DOCUMENT_BODY

# Substitution der Subpartmarker
subparts {

logo < temp.logo
menu_left < temp.menu_left
menu_right < temp.menu_right
menu_side < temp.menu_side
sub_menu < temp.sub_menu
content < styles.content.get
info_page < temp.info
news < temp.news
}
}

# Definition des Header
temp.headTemplate = TEMPLATE
temp.headTemplate {
     # Übergabe des Templates
template =< plugin.tx_automaketemplate_pi1

# Subpart Aussuchen
workOnSubpart = DOCUMENT_HEADER
}

# Default PAGE object:
page = PAGE
page.typeNum = 0

page.config.index_enable = 1
temp.sitemap.startingPoint.field=4

# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate
#page.10 =< plugin.tx_automaketemplate_pi1

# Copying the content from TEMPLATE for <head>-section:
page.headerData.10  < temp.headTemplate

Hier werden die News (temp.news) angezeigt. Wenn ich testweise meine Newsliste anzeigen lasse (temp.news_full) funktioniert das auch.
Für meine News habe ich ein anderes Template erstellt.
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:
# Definition des Body
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
# Übergabe des Templates
template =< plugin.tx_automaketemplate_pi1

# Subpart Aussuchen
workOnSubpart = DOCUMENT_BODY

# Substitution der Subpartmarker
subparts {
logo < temp.logo
menu_left < temp.menu_left
menu_right < temp.menu_right
menu_side < temp.menu_side
sub_menu < temp.sub_menu
content < news_full
info_page < temp.info
news < temp.news
}
}
# Definition des Header
temp.headTemplate = TEMPLATE
temp.headTemplate {
     # Übergabe des Templates
template =< plugin.tx_automaketemplate_pi1

# Subpart Aussuchen
workOnSubpart = DOCUMENT_HEADER
}

# Default PAGE object:
page = PAGE
page.typeNum = 0
page.config.index_enable = 1
temp.sitemap.startingPoint.field=4
# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate
#page.10 =< plugin.tx_automaketemplate_pi1
# Copying the content from TEMPLATE for <head>-section:
page.headerData.10  < temp.headTemplate

Jetzt werden allerdings keine News mehr angezeigt. Der Marker wird erkannt, aber mit nichts ersetzt. Auch das einfügen des Maintemplates (was ja funktioniert) hilft mit.

Vielen Dank
__________________
Typo3 v3.8.8 | 4.0
Mit Zitat antworten