[TYPO3] First Extension attempt

Stephen Bungert s.bungert at metrinomics.de
Thu Mar 13 10:51:14 CET 2008


Hallo.

I tried to use that:

for ($index = 0; $index < $loopCount; $index ++)
			{
				$conf = array('parameter' =>
$this->conf['ttnewsSinglePid'], 'additionalParams' => '&tx_ttnews[tt_news]='
. $this->result[$index], 'useCacheHash' => true,);
				$url = $this->cObj->typoLink_URL($conf);
				
				$content .= '<div id="sbArticle">
		        		<p id="sbArtTitle"><a href="' . $url
. '" title=" View this article (' . $this->matchingResult[$index]['title'] .
')">' . $this->matchingResult[$index]['title'] . '</a> <span
id="sbArtTimeStamp">' . $this->matchingResult[$index]['datetime'] .
'</span></p>
		        		<p id="sbArtSummary">' .
$this->matchingResult[$index]['bodytext'] . ' <a class="articleLink">Read
More</a></p>
					</div>
				</div>';
			}

But it always sets &tx_ttnews[tt_news]= to 1 (this ist he same as the one
I'm currently looking at, so all links just go tot he current one SINGLE
article). Have you, or anyone else an idea about what I did wrong?

-----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