[TYPO3] TypoScript - userFunc - passing value

Tomas Mrozek mail at cascaval.com
Wed May 30 11:55:17 CEST 2007


TypoScript code:
---------------
subparts.TEST = USER
subparts.TEST {
  userFunc = user_myClass->myFunction
  myValue = ???
}

I would like to pass to the function "myFunction" specific TYPO3 data as
the "myValue" variable, and I have just found that my knowledge of
TypoScript is still quite messy.

Example of what I would like to assign to that variable:
-------------------------------------------------------
subparts.TEST = USER
subparts.TEST {
  userFunc = user_myClass->myFunction
  myValue = GPVar:tx_ttnews|news
}

...OR...

temp.test = TEXT
temp.test.value = 99

subparts.TEST = USER
subparts.TEST {
  userFunc = user_myClass->myFunction
  myValue < temp.test
}

I have searched the docs and tried to google out some example but I just
can't figure it out. I don't know how to assign/pass values.
Please, could anyone give me a hint on how to do it?

Thank you in advance!

Tomas Mrozek


More information about the TYPO3-english mailing list