[Typo3-dev] link generation, cHash?
Daniel Thomas
dev at dpool.net
Tue Dec 7 08:59:49 CET 2004
Hi Gabor,
as far as I know the calling object for your method is passed as a
reference in the parameter
$conf['parentObj']
I have not tried this, but it should be possible to call all the pibase
methods by reference of that object. i.e.
$conf['parentObj']->pi_linkTP()
and the like.
Have a look at the function userProcess() in class.tx_ttnews.php
Regards
Daniel
> Hi!
>
> I'm working on a small extension to tt_news, it's a small script to
> process some custom tags based on
> tt_news/res/example_itemMarkerArrayFunc.php .
>
> The problem is that i want to generate links to other (SINGLE) news in
> it, but i cannot find the proper way. If i simple make it as
>
> $link = '<a
> href="index.php?
> id='.$PID_OF_SINGLE.'&tx_ttnews[tt_news]='.$UID_OF_TARGET_NEWS_ITEM.'">
> '.$LINKNAME.'</a>' ;
>
> then it doesn't contain tx_ttnews[backPid] and cHash parameters, and
> althought the linked news element appears, the links on the resulting
> pages doesn't work. Here you can see an example:
>
> http://test.hunbike.hu/index.php?id=4
>
> click on "etap 2" please, then u can see in the top of teh news item
> some links to other links (tesztverseny főhir - interjú 1 - etap 1 ).
> click to any of them loads the appropriate news, but then the same
> links
> on the top on that page won't work.
>
> I know the general way to create typolinks, but afaik that needs to
> create a class which extends tslib_pibase. But in
> tt_news/res/example_itemMarkerArrayFunc.php there's only a "standalone"
> user function, which isn't in a class object so i think i cannot use
> piVars[] and such.
>
> Can somebody help me please where should i look for more information
> about it, or how can i form my links correctly w/o using a tslib_pibase
> derivated class?
>
> thanks, hirisov
>
>
>
> _______________________________________________
> Typo3-dev mailing list
> Typo3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>
>
>
--/
Daniel Thomas dpool
Hinderink und Thomas Partnerschaft IT-Berater und Projektmanager
Zenettistr. 20 | D-80337 München
t 08945227582 | m 01793918781 | fax 08945227583
http://www.dpool.net | http://www.typergy.com
/--
More information about the TYPO3-dev
mailing list