Krx Hello I need to have output based on gender. Gender data is saved in Easy profile pro field. I Installed Easy profile plugin for AcyMailing. And integration works because if I enter this code in newsletter: Gender: {easyprofilefield:13} In Preview/Send I can see that It outputs correctly: Gender: M But if I use this syntax for Conditional Output: {if:{easyprofilefield:13}=M}Some text{/if} In Preview/Send it shows this error at the top: "User variable not set : M in M =M" I tried to use ~ operator and it throws this "User variable not set : M in M M" I also tried this: {if:var.{easyprofilefield:13}=M}Some text{/if} and it doesn't show error, but it also doesn't show "Some text" output. Am I doing something wrong in IF statement syntax? Joomla 3.9.27 AcyMailing 5.10.21 Thanks Regards
mihha Hi, conditional tags structure works only with AcyMailing user profile fields and not with external extensions. The fact that you can use other extensions with respective plugin doesn't mean that you can use fields from those extensions.
Krx Hello Now I'm puzzled. You state that Conditional works only with AcyM profile fields. But here it says: https://docs.acymailing.com/v/old/developers/conditional-display "For example if you created a field on Community Builder: {if:var.{tagcb:cb_gender}=M}this text will be displayed for Male{/if}" Or "You can also test based on Joomla profile values using the format: {if:joomla.joomlafield=value}...{/if}" Both cb_gender and joomlafield fields are not part of AcyM user profile fields, but they are made as examples. Regards
mihha Yes, but CB add-on provides integration for their fields, so they can be used in conditional display Not all add-ons provide that for a specific extension Please open a support ticket using our contact form, so we can see that further
Krx Hello Not worth of the trouble. I already spent too much time on this so I decided not to use this feature. IMHO if newsletter can show fields from 3rd party components, like Easy Profile pro, for which you provided plugin, there is no logic that it cannot use conditional option. And please, update tutorial here: https://docs.acymailing.com/v/old/developers/conditional-display It could help to save few hours to someone else. Regards