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

Image Conditional Not Working when 3 conditions #1898

Closed
bgarrant opened this Issue Apr 24, 2018 · 4 comments

Comments

Projects
None yet
2 participants
@bgarrant

bgarrant commented Apr 24, 2018

{{ alt or filename }} works {{ title or filename }} works but {{ title or alt or filename }} fails

It skips alt when used in <p>{{ title or alt or filename }}</p>

@jackmcdade

This comment has been minimized.

Member

jackmcdade commented Apr 24, 2018

This is because if title is not set, we use filename in place. This is a CP-driven convention for the asset tile grids. We could probably decouple it though.

@bgarrant

This comment has been minimized.

bgarrant commented Apr 27, 2018

So basically we should use {{ alt or title }} and it would cover them all?

@jackmcdade

This comment has been minimized.

Member

jackmcdade commented Apr 27, 2018

@bgarrant

This comment has been minimized.

bgarrant commented Apr 27, 2018

Thanks. Keep me posted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment