[TYPO3] kb_tvcontslide showing content twice

Bernhard Kraft kraftb at kraftb.at
Thu Aug 17 04:48:09 CEST 2006


Xander Damen wrote:

>  10.source.current=1

Remove this line.

As the postUserFunc is already generating the content you will not need the current values
also.

I should add this to the manual as you are already the second person with this problem.

the userFunc will retrieve the values from the current field and slide back if it doesn't find
contents ... so the userFunc will return the list of tt_content records to render and the value
must not get retrieved from the field on the actual level (which .current = 1 does). So currently
you get the records from the current level and then additionally append the slided records (which
is the same as it slided not down because of finding content on the current level).

the

10 = RECORDS

cObject just renders the tt_content records which finally are found in the property ".source".

Just to explain what happens here ...



greets,
Bernhard
-- 
----------------------------------------------------------------------
"Freiheit ist immer auch die Freiheit des Andersdenkenden"
Rosa Luxemburg, 1871 - 1919
----------------------------------------------------------------------
[[ http://think-open.at | Open source company ]]



More information about the TYPO3-english mailing list