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

Dmitry Dulepov dmitry at typo3.org
Fri Mar 20 20:17:02 CET 2009


Frédéric Ollivier wrote:
> 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.

Yes, you can do it. For example, content elements are fetched this way. Here is TS for the content elements that TemplaVoila generates:

10.tables = tt_content

Try dumping $this->cObj->data and see what you got there.

Dmitry Dulepov
TYPO3 core team

More information about the TYPO3-project-templavoila mailing list