Antwort
 
LinkBack Themen-Optionen Thema bewerten Ansicht
  #1  
Alt 12.01.08, 09:11
Benutzerbild von Otti
Forum Zuschauer
 
Registriert seit: 12.01.08
Beiträge: 1

"Keine news_id übergeben" bei Direktlink


Hallo,

ich habe auf einer Seite links die News mit der Ansicht "LIST" verbastelt und im rechten Bereich die Ansicht "SINGLE". Das funzt auch wunderbar.

Klicke ich jetzt aber im Menu auf meine Seite "Aktuelles", wird links zwar die LIST-Ansicht angezeigt, im rechten Bereich steht aber "Keine news_id übergeben", was ja auch logisch ist.

Zu besichtigen unter:HBZ Brackwede: Home

Im TS steht:

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:
plugin.tt_news {
displayList.date_stdWrap.strftime= %d.%m.%Y
singlePID = 6
_LOCAL_LANG.de {
more = mehr
#noNewsIdMsg = Bitte wählen Sie einen Eintrag
}
}

seite.20.template.file = fileadmin/templates/newslist.tmpl
seite.20.marks {
newslist = COA
newslist < plugin.tt_news - ERROR: Line 12: Object copied in this line "newslist < plugin.tt_news" would leave either the value or properties untouched in TypoScript Version 1. Please check that this is not a problem for you.
newslist {
# Page ID News:Die ID der Seite wo die News drin sind
pid_list >
pid_list = 4
#Page ID Singlenews:Die ID der Seite wo die SingleNews drin sind
singlePid >
singlePid = 6
code >
code = LIST
}
}


Kann ich irgendwie die neuste ID (also die des letzten NEWS-Beitrages übergeben?

Aus der Anleitung (Default news id) werde ich nicht schlau, bin (noch) kein Crack ...

Das Problem hatten schon einige, wurde aber noch nie erschöpfend beantwortet (oder ich bin blind). Langsam geht mir bei der Suche die Puste aus.
Danke für die Hilfe!

Gruß aus Lippe,

Otti.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #2  
Alt 11.04.08, 09:31
Benutzerbild von sterborg
Forum Zuschauer
 
Registriert seit: 29.05.07
Beiträge: 7

Aus dem Handbuch bei den TS-Beispielen:
Zitat:
Default news id

Insert the following lines to the setup field of an ext-template at the page where you want to display the latest news item in SINGLE view if no SINGLE view for another record was requested:

# hide the "no news id" message

plugin.tt_news._LOCAL_LANG.default.noNewsIdMsg = &nbsp;

# set the tt_news singlePid to the current page

plugin.tt_news.singlePid = 977

# fill the content of the main-column to a tmp.object

tmp.pagecontent < page.10.subparts.contentarea

# clear the content of the main column

page.10.subparts.contentarea >

# build a new object for this column as content-object-array

page.10.subparts.contentarea = COA

page.10.subparts.contentarea {

10 = CONTENT

10.table = tt_news

10.select {

# insert the pids of all pages from where you want to fetch news.

# the recursive-field has no influence on this selection

pidInList = 1078,1079,1080,1081,1082,1083,1084

orderBy = datetime desc

max = 1

}

# insert the object “10.” only if there is no SINGLE news selected

10.stdWrap.if.isFalse.data = GPvar:tx_ttnews|tt_news

# re-insert the normal pagecontent to the page

20 < tmp.pagecontent

}

The page in this example contains 2 columns. The news LIST is located in the left column. the main column (page.10.subparts.contentarea) contains a SINGLE news content-element.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Keine news_id übergeben. mip|David News (tt_news, mininews und Co) 1 03.06.08 15:21
keine news_id übergeben nach Serverwechsel schluggy News (tt_news, mininews und Co) 1 05.06.07 08:07
keine News_id übergeben bolshi News (tt_news, mininews und Co) 2 12.05.07 08:29
bb_languageselect : keine news_id beim Sprachwechsel übergeben canario_aleman Alle anderen Extensions 1 20.01.07 10:24
statt "keine news_id übergeben" anderer Text ghoti News (tt_news, mininews und Co) 4 25.08.06 12:46


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:10 Uhr.


Powered by vBulletin® Version 3.7.3 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0