[TYPO3] First Extension attempt

Stephen Bungert s.bungert at metrinomics.de
Thu Mar 13 11:32:10 CET 2008


Hmm..
'parameter' => $this->conf['ttnewsSinglePid'], replacing this with the
actual single page pid works:
'parameter' => 14,


Then it functions again.

The contents of $this->conf is just:

userFunc : tx_relatedttnews_pi1->main, there is no ttnewsSinglePid


-----Ursprüngliche Nachricht-----
Von: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] Im Auftrag von Dmitry
Dulepov [typo3]
Gesendet: Mittwoch, 12. März 2008 18:59
An: typo3-english at lists.netfielders.de
Betreff: Re: [TYPO3] First Extension attempt

Hi!

Stephen Bungert wrote:
> All the related articles are listed, the body text is nicely cropped with
> ... at the end, I have the timestamp converted. All I hhave to do now is
> find out how to link the title tot he actual article (in single view).

$conf = array(
	'parameter' => $this->conf['ttnewsSinglePid'],
	'additionalParams' => '&tx_ttnews[tt_news]=' . $newsUid,
	'useCacheHash' => true,
);
$url = $this->cObj->typoLink_URL($conf);

You need a page id with tt_news single view in
$this->conf['ttnewsSinglePid'].

-- 
Dmitry Dulepov
TYPO3 core team
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"Nothing is impossible. There are only limits to our knowledge"
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list