In a CB Content Module I'd like to use a cb:if substitution to verify if the content owner is not viewing the module and if content owner has allowed his contact data to be displayed to all other viewing users.
Of course the code below does not work properly as "the module" picks the current value of cb_download_display_gallery_contact_toggle from each user viewing the module and not that of the content owner's profile (in this case user 255). What can I do to accomplish this? Can I use any type of asset, say field.34.userid.255 ?
Code:
[cb:if user_id !="255" and cb_download_display_gallery_contact_toggle="1"]
[cb:userfield field="avatar" user="255" reason="list" /]
[/cb:if]
Thanks in advance.