[TYPO3-german] tt_news printlink [tx_ttnews[tt_news]

Guido Schulze typo3.newsliste at online.de
Wed Apr 4 09:06:01 CEST 2007


hy ling,

wie meinst du das?
ZITAT -->
Du solltest das additionalParams als COA einstellen, so das du auch noch
die ID der einzelnen News anhängen kannst.
<--

OHNE RealURL und suchm-freundl.url erstellt er mir mit dem TS-code (s. 
unten) folgenden drucklink:
index.php?id=news&id=news&tx_ttnews[tt_news]=2&tx_ttnews[backPid]=6&cHash=e4c8c73dc2&type=1 


also offensichtlich (?) soweit alles drin was man braucht (+ klappt auch).

MIT RealURL:

adresse des news-artikels:
http://domain/aktuelles/news/article/6/artikelueberschrift.html

link zur druckansicht:
http://domain/aktuelles/news/print.html

eigentlich sollte dieser so aussehen wie der link zum artikel, erweitert 
um den type=1 für die druckansicht.

da der link (ohne RealURL) ja alle info´s bereitstellt, denke ich es 
liegt an der RealURL konfiguration, oder?

was muss ich da noch ändern, so dass es mir die enstsprechenden infos 
mit aufbaut?

derzeit sieht mein ext_localconf so aus (auszug):

'fixedPostVarSets' => array(
),
'postVarSets' => array(
	'_DEFAULT' => array(
		'period' => array (
			array (
				'condPrevValue' => -1,
				'GETvar' => 'tx_ttnews[pS]',
					//'valueMap => array()
				),
			array (
				'GETvar' => 'tx_ttnews[pL]',
				//'valueMap => array()
			),
			array (
				'GETvar' => 'tx_ttnews[arc]',
				'valueMap' => array(
				'non-archived' => -1,
			),
		),
		),
		'browse' => array (
       		array (
          		'GETvar' => 'tx_ttnews[pointer]',
				),
			),
		'select' => array (
			array (
				'GETvar' => 'tx_ttnews[cat]',
					'lookUpTable' => array (
						'table' => 'tt_news_cat',
						'id_field' => 'uid',
						'alias_field' => 'title',
						'addWhereClause'=> 'AND NOT deleted',
						'useUniqueCache'=> 1,
						'useUniqueCache_conf' => array (
						'strtolower' => 1,
						'spaceCharacter' => '-',
						),
					),
       			),
			 ),
		'article' => array(
			array (
				'GETvar' => 'tx_ttnews[backPid]',
					// 'valueMap => array(
					// ),
				),
			array (
				'GETvar' => 'tx_ttnews[tt_news]',
					'lookUpTable' => array (
					'table' => 'tt_news',
					'id_field' => 'uid',
					'alias_field' => 'title',
					'maxLength' => 30,
					'addWhereClause'=> 'AND NOT deleted',
					'useUniqueCache'=> 1,
					'useUniqueCache_conf' => array (
					'strtolower' => 1,
					'spaceCharacter' => '-',
       				),


bin so langsam am verzweifeln ;-(

THX + gruss
guido


Daniel Selinger schrieb:
> Yupp,
> 
> das TSFE:id ist ja nur die Seite auf der die News angezeigt werden.
> Du solltest das additionalParams als COA einstellen, so das du auch noch 
> die
> ID der einzelnen News anhängen kannst.
> 
> Grüße
> Ling
> 
> 
> Am 02.04.07 schrieb Guido Schulze <typo3.newsliste at online.de>:
>>
>> hy ling,
>>
>> thx für deine antwort.
>> hab es jetzt aber schon auf grundlage von joey´s mail so umgesetzt:
>>
>> DRUCKVERSION = COA
>> DRUCKVERSION {
>>      stdWrap.typolink {
>>          addQueryString = 1
>>          useCacheHash = 1
>>          parameter.data = TSFE:id
>>          additionalParams = &type=1
>>          ATagParams = target="_new" title="zur Druckansicht"
>>      }
>>      10 = IMAGE
>>      10 {
>>          file = fileadmin/template/img/icon/print.gif
>>          altText = zur Druckansicht
>>      }
>>      20 = TEXT
>>      20 {
>>          value = Druckansicht
>>      }
>> }
>>
>> klappt auch soweit ganz gut,
>> allerdings hab ich jetzt doch ein problem mit dem RealURL, die
>> druckansicht bekommt keine news-id.
>> evtl. hast du einen ansatz?
>>
>> gruss
>> guido
>>
>>
>>
>> Daniel Selinger schrieb:
>> > Hoi,
>> >
>> > das solltest du über data = GPvar:tx_ttnews|tt_news abfragen können.
>> >
>> > Greetz
>> > Ling
>> >
>> >
>> > Am 31.03.07 schrieb Guido Schulze <typo3.newsliste at online.de>:
>> >>
>> >> hallo,
>> >>
>> >> über folgendes TS baue ich mir im haupttemplate meinen
>> druckansicht-link
>> >> zusammen:
>> >>
>> >> DRUCKVERSION = TEXT
>> >> DRUCKVERSION {
>> >>         field = uid
>> >>         wrap = <img src="fileadmin/template/img/icon/print.gif"
>> >> alt="Druckansicht" /> <a href="index.php?id=|&amp;type=1"
>> >> target="_new">Druckansicht</a>
>> >> }
>> >>
>> >> wie bekomme ich da jetzt noch die id des news artikels (
>> >> tx_ttnews[tt_news] )mit untergebracht?
>> >>
>> >> thx für jede hilfestellung
>> >>
>> >> gruss
>> >> guido
>> >> _______________________________________________
>> >> TYPO3-german mailing list
>> >> TYPO3-german at lists.netfielders.de
>> >> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-german
>> >>
>> _______________________________________________
>> TYPO3-german mailing list
>> TYPO3-german at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-german
>>


More information about the TYPO3-german mailing list