Zum Inhalt springen

komme überhaupt nicht mit dem tt_news plugin klar ;(

Erstellt am 2. Februar 2006 · 4 Antworten · letzte Antwort am 2. Februar 2006

Tags: tt_news, Frage

insa ·

hallo leute,

wie ihr es schon der überschrift entnehmen könnt komme ich nicht zurecht. folgendes: habe mir das update auf die version 2.2.24 runtergeladen und nach verschiedenen tutorials (der inhalt ist ja eigentlich größtenteils derselbe) versucht die ganze sache zum laufen zu kriegen. das problem ist jetzt, die überschrift des seiteninhaltes vom typ "plugin einfügen" wird mir angezeigt, jedoch der datensatz "news" nicht. ich habe wirklich keine ahnung warum es nicht funktioniert. habe es alles nach den tut's gemacht aber trotzdem keinen erfolg gehabt. ich denke mir, vielleicht habe ich einfach nur fehlende typoscript-zeilen in meinem setup. es wäre sehr schön wenn mir jemand mal eine ausführliche lösung zu meinem problem schildern könnte. mein typoscript folgt:

page = PAGE
page.typeNum = 0
page.stylesheet = fileadmin/css.css
page.10.marks.MENU.1.NO.ATagParams = class="menue"

page.10 = TEMPLATE
page.10 {
template = FILE
template.file = fileadmin/vorlage.html
# Links
marks {
MENU = HMENU
MENU {
special = directory
special.value = 2
1 = TMENU
1.NO = 1
1.NO.linkWrap = &nbsp;&nbsp;<font face=Wingdings color=#B3FE00>&icirc;</font>&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp; |*|
<font face=Wingdings color=#B3FE00>&icirc;</font>&nbsp;|&nbsp; |*|
&nbsp;|
}

# Inhalt ausgeben
DYNAMISCHER_CONTENT = CONTENT
DYNAMISCHER_CONTENT {
table = tt_content
select.orderBy = sorting
}
}

}

}
# Seiteninhalte beschreiben
tt_content = COA
tt_content {
10 = TEXT
10 {
field = header
wrap = <table border=0 cellpadding=0 cellspacing=0><tr><td><font size=1><b>|</b></font></td></tr></table>
}
20 = TEXT
20 {
field = bodytext
wrap = <font color=#69737D><p>|</p></font>
}
}

ps: achja, die news sollen beim marker "dynamischer_content" stehen. vielleicht gehts deswegen nicht weil der inhalt aus der tabelle tt_content kommt??!? keine ahnung ;(

tandem ·

Hallo,

ps: achja, die news sollen beim marker "dynamischer_content" stehen. vielleicht gehts deswegen nicht weil der inhalt aus der tabelle tt_content kommt??!? keine ahnung ;(

so ist es.

# Inhalt ausgeben
DYNAMISCHER_CONTENT = CONTENT
DYNAMISCHER_CONTENT {
table = tt_content
select.orderBy = sorting
}

versuchs mal so:
DYNAMISCHER_CONTENT = COA
DYNAMISCHER_CONTENT.10 < plugin.tt_news

insa ·

danke erstmal, ne anzeige kommt, jedoch noch nicht dsa gewünschte ergebnis 😉

nun kommt dies:

News Codes
You must insert a code in the CODE field of the "List" content element before the news module will work. The code tells the news module what to do. You can insert multiple codes by separating them by a comma.
Here is an example:

Starting point: If you don't insert a page as starting point the current page is used. Notice that the recursive function do work with news and thus you can select news from multiple pages and subpages.
Current CODE = ""
LATEST List the latests non-archive news
AMENU Displays a menu of the archive divided into time periods.
LIST Displays all news by default or news from a given time interval defined with a URL parameter (eg. used by the ARCHIVE function)
SEARCH Displays a search box and result listing for searching the archive.
SINGLE Displays a single news item if tt_news is set as a GET var.
Special: You can specify any of these codes prepended with a slash and a number, which indicates which category to use. If no category is defined all categories are used by default. If you enter two slashes (parameter number 2) you specify whether the listing is from archive (1), non-archive (-1) or don't-care (0).
Example: 'LIST/2/-1' - displays all news not in archive from the category with id '2'.

ich habs bereits einmal mit "LIST" und einmal mit "LATEST" probiert. der obere text kommt aber immer wieder !?