[Typo3-dev] TS: Using values returned by a userFunction
Nicolas Cohen
nicolas at basicpayments.com
Tue Oct 25 22:32:03 CEST 2005
I have a userfunction that returns an integer
The integer is intended to be the uid of the category ill display in the
page.
So heres goes my tscode:
includeLibs.something = fileadmin/scripts/seccion_category.php
# THIS TS OBJET PATH GETS THE VALUE FROM THE FUNCTION.
# HOW CAN I INITIALIZE IT WITHOUT RENDERING CONTENT?
lib.categorySelection = USER_INT
lib.categorySelection {
userFunc = user_seccion_category
}
# THIS IS THE TS THAT RENDERS THE NEWS
# HOW CAN I ASSIGN THE categorySelection PARAMETER
# WITH THE lib.categorySelection value
seccion.newsLatest < plugin.tt_news
seccion.newsLatest {
code >
code = LATEST
pid_list >
pid_list = 74
catImageMode = 0
catTextMode = 0
categorySelection = lib.categorySelection
categoryMode = 1
}
Hope this CAN be donde
Thanks in advance.
Nicolás
More information about the TYPO3-dev
mailing list