[Typo3-dev] TS: Using values returned by a userFunction
Ries van Twisk
typo3 at rvt.dds.nl
Wed Oct 26 04:33:08 CEST 2005
try this but I am not sure if categorySelection iis a stdWrap:
You need to change = to <
categorySelection < lib.categorySelection
>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
>_______________________________________________
>Typo3-dev mailing list
>Typo3-dev at lists.netfielders.de
>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>
>
More information about the TYPO3-dev
mailing list