Hi,
On 6/27/07, Benjamin Harwell <[EMAIL PROTECTED]> 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/
_______________________________________________
TYPO3-english mailing list
[email protected]
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english