[TYPO3-english] TS userFunc condition
pasqualeb
pasquale.basile at gmail.com
Sun Nov 30 08:20:44 CET 2008
Hi all,
I need to use a user function condition. I made several attempt to
accomplish this but does not work at all.
At the present the user function is reduced to:
function user_check($cmd) {
return (TRUE);
}
and the condition to
page.30 = TEXT
page.30.value = FALSE
[userFunc = user_check(Check)]
page.30.value = TRUE
[GLOBAL]
a) following the TSref, I put the code in localconf.php without results;
b) I create a single file (user_check.php) in fileadmin/:
<?
// echo 'TEST';
function user_check($cmd) {
return (TRUE);
}
?>
and then used
page.includeLibs.user_check = fileadmin/user_check.php
in TS setup. Even in this case, no results.
c) I put an echo('TEST') at the very beginning of the file (see above)
anche checked that the file is correctly loaded.
I have checked several post on the mailing list, but without any result in
this simple case. Any suggestion?
Any help will be greatly appreciated.
Thanks,
Pasquale Basile
More information about the TYPO3-english
mailing list