[TYPO3-english] no news_id given tt_news single view
PIT Solutions
typo3 at pitsolutions.com
Tue Nov 26 12:17:29 CET 2013
Hi,
Thanks for the information. Can you please give me an example of how can I add it in to tt_news in my function?
In my function, just took the language value from the URL and process the HTML based on that. So how can I fix this problem
for tt_news in my function.
Thanks,
Arun
________________________________
From: Xavier Perseguers <xavier at typo3.org>
To: typo3-english at lists.typo3.org
Sent: Tuesday, November 26, 2013 1:13 PM
Subject: Re: [TYPO3-english] no news_id given tt_news single view
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
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list