Hallo,
nicht das jetzt alle denken, wieso schon wieder so ein Beitrag!
Ich habe das Plugin tt_news schon mehrfach ohne Probleme nach folgendem TUT angewendet:
http://www.typo3-tutorials.org/tutorials/extensions/tt-news-v2-konfigurieren.html
Doch dieses mal will es einfach nicht funktionieren!
Eventuell habe ich einen Ansatz, aber ich weiß nicht ob es daran liegen kann!
hier meine Konstanten:
# Page ID News:Die ID der Seite wo die News drin sind
pid_list = 4
#Page ID Singlenews:Die ID der Seite wo die SingleNews drin sind
singlePid = 23
Und hier ein Auszug meines Quelltextes:
<!-- begin: #col1 - first float column -->
<div id="col1"><!--###col1### begin -->
<div id="col1_content" class="clearfix">
<!-- CONTENT ELEMENT, uid:13/list [begin] -->
<a id="c13"></a>
<!-- Plugin inserted: [begin] -->
<p>no news in this list.</p>
<!-- Plugin inserted: [end] -->
<!-- CONTENT ELEMENT, uid:13/list [end] -->
</div>
<!--###col1### end --></div>
<!-- end: #col1 -->
Wie ich das sehe stimmt die ID meiner root_News nicht mit der ID meines Content überein, obwohl die ID meines root_News 4 ist.
Warum gibt er im Quelltext dann eine uid:13 an.
Ob dies mit dem eigentlichen Problem zusammenhängt übersteigt leider meine Typo3 kenntnisse und ich erhoffe mir Hilfe von eurerseits.
Danke
Liegt Dein News-Content-Element (flexform) auf der Seite mit der UID 13?
Das
<a id="c13"></a>
musst Du nicht beachten.
Nein, die Seite mit der ID 13 ist eine ganz unabhänge Seite und hat rein garnichts mit tt_new zu tun.
Meine root News liegt auf der 4 und der Single Bereich auf der 23.
Die <a id="c13"></a> stört mich auch nicht, weil ja einfach nur ne CSS Anweisung aber das steht ja noch:
<!-- CONTENT ELEMENT, uid:13/list [begin] -->
und das macht mich etwas stutzig!
Vielleicht liegt es ja auch am Haupttemplate:
# Configuring the Auto-Parser:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/main/template_1.html
# Here we define which elements in the HTML that
# should be wrapped in subpart-comments:
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
DIV.all = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/main/
}
# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
# 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.col1_content < styles.content.get
subparts.col3_content < styles.content.getRight
}
# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <head>-tags
workOnSubpart = DOCUMENT_HEADER
}
# Default PAGE object:
page = PAGE
page.typeNum = 0
# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate
# Copying the content from TEMPLATE for <head>-section:
page.headerData.10 < temp.headTemplate