[TYPO3] Is there something like insertData in postUserFunc?

Christopher Torgalson bedlamhotel at gmail.com
Wed Jun 27 19:35:48 CEST 2007


Hi,

On 6/27/07, Benjamin Harwell <ben at benjaminharwell.com> wrote:
> Creating a subject that relates to what you are trying to do is always
> difficult.. The small code snippet below is from a TMENU I'm working on. I
> need to replace the "field:uid" with the uid of the subpage currently being
> processed. My question is, how in the world do you get that to substitute?
>
> NO {
>   doNotShowLink = 1
>   before.cObject = COA
>   before.cObject {
>      1 = TEXT
>      1.postUserFunc = user_doStuff->getContentFlexValue
>      1.postUserFunc{
>         uid = field:uid
>      }
>   }
> }



It looks to me like you've already got 99.9999% of the setup in your
code sample. Because your before.cObject is a COA, and because COAs
have .stdWrap, you should be able to just add this:


before.cObject.stdWrap.insertData = 1


Not tested, can't think why it wouldn't work though.



-- 
Christopher Torgalson
http://www.typo3apprentice.com/


More information about the TYPO3-english mailing list