[TYPO3-ttnews] tt_news add Parameter to URL

candy stefan.drehmann at ctw-jena.de
Wed Apr 10 15:38:06 CEST 2013


Hello,

i need some help :) How can i read out the current id from tt_news and add this as a parameter to the url

a small review of my TYPOSCRIPT

2 = TMENU
2 {
wrap = <ul class="naviMainLevel2"> | </ul>
NO {
wrapItemAndSub = <li> | </li>
}
ACT = 1
ACT {
wrapItemAndSub = <li class="active"> | </li>
#get current tt_news id add it to the menu
parameter.override.field = tt_news_id ||uid
additionalParams.field = uid
additionalParams.intval = 1
additionalParams.wrap = &tx_events_pi1[newsId]=|

}
CUR = 1
CUR < .ACT
}

url should then look like this: www.example.com/news/news-tech?&tx_events_pi1[newsId]=55

thx for help!



More information about the TYPO3-project-tt-news mailing list