[TYPO3-english] powermail - set field content depending on a other field content.

horace grant horace3d at gmail.com
Sat Mar 9 16:48:15 CET 2013


On Sat, Mar 9, 2013 at 3:04 PM, horace grant <horace3d at gmail.com> wrote:

>
>
> On Wed, Mar 6, 2013 at 10:25 AM, horace grant <horace3d at gmail.com> wrote:
>
>> On Wed, Mar 6, 2013 at 9:35 AM, Katja Lampela <katja.lampela at lieska.net
>> >wrote:
>>
>> > Hi,
>> >
>> > 6.3.2013 0:16, horace grant kirjoitti:
>> >
>> >  i am using powermail and would like to check if a field is empty. if
>> it is
>> >> empty i would like to set another field to a certain value.
>> >>
>> >> how can i do this? i didn't find any working solution.
>> >>
>> >
>> > Did you check Powermail Conditions, powermail_cond
>>
>>
>
> i have checked it now. it doesn't seem to help at all. it looks like it
> only can hide/show fields in the front-end, depending on some conditions.
>
> i want to chance the content of a field though, depending on some
> condition.
>
> any other ideas?
>



i found a solution:

plugin.tx_powermail_pi1 {
  mode {
    recipient_mail {
      uid6 = TEXT
      uid6.data = TSFE:fe_user|sesData|powermail_85|uid6
      uid6.override = ---
      uid6.override.if.isFalse.data = TSFE:fe_user|sesData|powermail_85
|uid12
    }
  }
}

this seems to do exactly what i want. am i missing any troubles that could
arise from this solution?`

(sometimes i wish typoscript were more like a normal programming language.
those stdWrap constructs can be quite weird and confusing.)

bye,
thomas






>
> bye,
> horace
>


More information about the TYPO3-english mailing list