Hi,
I have a profile-classifieds one-to-many relationship. When users create their profile they might load or not their own picture. In the single classified content template I have two conditional blocks:
If the user image exists then show the user image:
NOT (
Field User image from Parent: Profile is empty .
)
and this works fine.
If the user image doesn't exist I want to load the usual dummy user icon, but the opposite condition I set (Field User image from Parent: Profile is empty .) doesn't work and the icon isn't shown, why ? is there any workaround you can suggest ?
Thanks
Nicola
Can you enable the debugging on the conditional block that you're checking for the empty field on and let me know what the debug data you're getting from this is.
Hi Shane,
I have activated the debug mode for the conditional block, but being this the first time I use it I don't know how to use it. If I activate the Chrome console I see what in the attached image. Please let me know if there is anything else I have to look for, thanks Regards
Nicola
It turns out that the conditional block isn't evaluating the parent data correctly. Can you try using a classic editor block and then adding the following conditional inside the block and let me know if it helps.
Hi Shane
I did what you suggested in two ways, adding the image from the media or adding an img tag, none of the two seems to work.
See screenshot attached, did I do anything wrong ? the second one is still saved in the content template
thanks