[TYPO3] Problems with typoLink_URL
Dmitry Dulepov [typo3]
dmitry at typo3.org
Wed Mar 26 15:43:07 CET 2008
Firsts, hello!
Stephen Bungert wrote:
> $conf = array('parameter' => $this->ttNewsSinglePid, 'additionalParams' =>
> '&tx_ttnews[tt_news]=' . $this->matchingResult[$index]['uid'],
> 'useCacheHash' => true,); $url = $this->cObj->typoLink_URL($conf);
>
> This should generate a url to a tt_news article. It's in a for loop, so that
> I can output lots of tt_news articles.
>
> $this->matchingResult[$index]['uid'] returns a different number in each
> loop, so I know it hast he correct UID fro the article,
>
> but when $url is outputed in an echo it is empty, so the link urls are tot
> he current article being viewed instead oft eh article link I made.
I think your ttNewsSinglePid is 'none'. This is why nothing is outputted.
> var $queryResult = undefined; // UID numbers of the related articles
"undefined" - what's this? No such thing in PHP as far as I know.
> foreach($conf as $name => $value)
> {
> print "$name : $value<br>";
use debug() instead of print().
--
Dmitry Dulepov
TYPO3 core team
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"Nothing is impossible. There are only limits to our knowledge"
More information about the TYPO3-english
mailing list