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

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


Hi!

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 = RECORDS
10.source.current=1
10.tables = tt_content

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

-- 
Dmitry Dulepov
TYPO3 core team
http://dmitry-dulepov.com/article/typo3-extension-update-google-sitemap.html


More information about the TYPO3-project-templavoila mailing list