[TYPO3-templavoila] Passing FCE field value to userFunc as parameter

Frédéric Ollivier lordef at gmail.com
Thu Mar 19 22:47:37 CET 2009


Hi all,
I'm new to this list and quite a newbie in TV so forgive me in advance if
the answer is too obvious.

I've created a FCE with a field named SKU.

In FE, I need to display an image based on this SKU.

I thought I could access SKU field using TypoScript in my Setup and pass it
to a userFunc but this does not work.

Here's my setup :

100 = USER 100 {
  userFunc = user_functions->showBadge
  SKUvalue.field = SKU
}

showBadge returns HTML code depending if stock for SKU is not empty.

Is this the good way ?

Thanks for your help

-- 
Fredol


More information about the TYPO3-project-templavoila mailing list