[TYPO3-english] no news_id given tt_news single view

Xavier Perseguers xavier at typo3.org
Tue Nov 26 08:43:16 CET 2013


Hi,

> includeLibs.user_test = fileadmin/templates/user_test.php 
> 
> lib.langmenu = USER
> lib.langmenu {
>     userFunc = user_test->user_myFunc
>     value = 0
> }
> 
> This is worked in frontend for normal contents. But in tt_news single content, wen I translate language, it
> displayed "no news_id given" message.
> 
> I know in typoscript language menu "addQueryString" solves this problem.

Exactly.

> But in user function language menu, how can I solve this. Is the "addQueryString" work with user function?

As you see in the TypoScript reference [1], USER does not know what to
do with "addQueryString". However "addQueryString" is a standard
property of typolink [2], so you should simply define it in your user
function or, if you don't use typolink internally (which is bad btw),
mimic its behavior.

Kind regards


[1]
http://docs.typo3.org/typo3cms/TyposcriptReference/ContentObjects/UserAndUserInt/Index.html
[2]
http://docs.typo3.org/typo3cms/TyposcriptReference/Functions/Typolink/Index.html


-- 
Xavier Perseguers
Release Manager TYPO3 4.6

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org



More information about the TYPO3-english mailing list