Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avatar Conditional in Channel Entry Tag Not Working as Expected #3365

Open
VarenSwaab opened this issue May 3, 2023 · 1 comment
Open

Avatar Conditional in Channel Entry Tag Not Working as Expected #3365

VarenSwaab opened this issue May 3, 2023 · 1 comment

Comments

@VarenSwaab
Copy link

The avatar tag {if avatar} content {/if} inside a channel entry tag only works if the variable {avatar_url} is also called. This prevents me from showing just a static icon when an avatar exists. I believe this isn't the intended purpose of this tag as even the documentation states {if avatar} content {/if}.

https://docs.expressionengine.com/latest/channels/entries.html#if-avatar

@intoeetive
Copy link
Contributor

Does it work if you call {if avatar_url} ... content ... {/if}?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants