[TYPO3] Is there something like insertData in postUserFunc?

Benjamin Harwell ben at benjaminharwell.com
Wed Jun 27 20:44:28 CEST 2007


Hi Dmitry,

That did successfully parse a value, however it is the uid of the parent
page rather than the subpage the menu is currently dealing with. Very
interesting though. Thank you.

-Ben

On 6/27/07, Dmitry Dulepov <dmitry at typo3.org> wrote:
>
> Benjamin Harwell 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
> >     }
> >  }
> > }
>
> Inside your userFunc:
>
> $this->cObj->getData($conf['uid'], null);
>
> --
> Dmitry Dulepov
> TYPO3 freelancer / TYPO3 core team member
> Web: http://typo3bloke.net/
> Skype: callto:liels_bugs
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list