Re: [TYPO3] Is there something like insertData in postUserFunc?

2008-09-22 Thread Dmitry Dulepov [typo3]
Hi! Joerg Wagner wrote: > If you say "It does..." does this mean that there actually is a way to > use getData() to retrieve TV FCE fields? If so, could you tell me how > this works? If you have FCE information inside $cObj->data, you can use getData() on it. For example, if you have in FCE:

Re: [TYPO3] Is there something like insertData in postUserFunc?

2008-09-22 Thread Joerg Wagner
Hi Dmitry, >> The getData method seems not to work for field data originating from >> TV FCEs. > It does but differently because FCE fields are not real fields. Yes, I concluded that FCE fields are different. But the fact that FCE fields can be reached from inside TS with the same constructs

Re: [TYPO3] Is there something like insertData in postUserFunc?

2008-09-22 Thread Dmitry Dulepov [typo3]
Hi! Joerg Wagner wrote: > The getData method seems not to work for field data originating from TV > FCEs. It does but differently because FCE fields are not real fields. > E.g. if you have an FCE with a select type data element with field name > 'field_myselect' and you want to access the item

Re: [TYPO3] Is there something like insertData in postUserFunc?

2008-09-22 Thread Joerg Wagner
Dmitry Dulepov schrieb: > $this->cObj->getData($conf['uid'], null); I had a similar problem where the above solution did not work. Just in case somebody is interested... The getData method seems not to work for field data originating from TV FCEs. E.g. if you have an FCE with a select type da

Re: [TYPO3] Is there something like insertData in postUserFunc?

2007-06-28 Thread Tyler Kraft
Glad it worked for you, you can find more on it all in TSref in the PHP/USER parts (and possible in the postuserfunc of stdWrap) Benjamin Harwell wrote: > Very interesting. Thank you for your response. In order to get all that I > needed to my function I ended up using the following typoscript:

Re: [TYPO3] Is there something like insertData in postUserFunc?

2007-06-27 Thread Dmitry Dulepov
Benjamin Harwell wrote: > 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. Second parameter to getData is an array of fields. If you do pass anything, current page is t

Re: [TYPO3] Is there something like insertData in postUserFunc?

2007-06-27 Thread Benjamin Harwell
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 <[EMAIL PROTECTED]> wrote: > > Benjamin Harwell wrote: > > Creating a subject t

Re: [TYPO3] Is there something like insertData in postUserFunc?

2007-06-27 Thread Christopher Torgalson
Hi, On 6/27/07, Dmitry Dulepov <[EMAIL PROTECTED]> wrote: > Christopher Torgalson wrote: > > Not tested, can't think why it wouldn't work though. > > Because 1.postUserFunc.uid is processed *before* stdWrap in COA. That was exactly the point. I got distracted by the message title and thought th

Re: [TYPO3] Is there something like insertData in postUserFunc?

2007-06-27 Thread Dmitry Dulepov
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 d

Re: [TYPO3] Is there something like insertData in postUserFunc?

2007-06-27 Thread Benjamin Harwell
Very interesting. Thank you for your response. In order to get all that I needed to my function I ended up using the following typoscript: NO { doNotShowLink = 1 before.cObject = COA before.cObject { 1 = TEXT 1.data = field:uid 1.postUserFunc = user_doStuff->getCont

Re: [TYPO3] Is there something like insertData in postUserFunc?

2007-06-27 Thread Dmitry Dulepov
Christopher Torgalson wrote: > Not tested, can't think why it wouldn't work though. Because 1.postUserFunc.uid is processed *before* stdWrap in COA. -- Dmitry Dulepov TYPO3 freelancer / TYPO3 core team member Web: http://typo3bloke.net/ Skype: callto:liels_bugs __

Re: [TYPO3] Is there something like insertData in postUserFunc?

2007-06-27 Thread Tyler Kraft
If your going to do everything in your function, then just pass the uid as the content 1 = TEXT 1.data = field:uid 1.postUserFunc = user_doStuff->getContentFlexValue Untested but this (or a similar set of TS) would then pass the value as the $content variable into your function, then do whateve

Re: [TYPO3] Is there something like insertData in postUserFunc?

2007-06-27 Thread Christopher Torgalson
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 > processe

[TYPO3] Is there something like insertData in postUserFunc?

2007-06-27 Thread Benjamin Harwell
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? N