[Typo3-dev] link generation, cHash?
Horn Gábor
Horn.Gabor at aktiv.co.hu
Mon Dec 6 20:57:03 CET 2004
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
More information about the TYPO3-dev
mailing list