let's say if I don't have <img src="x" />
I want to display <img src="y">
is this possible to do it?
Edit:
sorry if the question is confusing... The problem is this:when user inserts url and if that url is a link to youtube, then youtube thumbnail needs to be displayed. if that url isn't a link to youtube video, post.image(default image) needs to be displayed. But post.image is not getting displayed!
//display post.image
the above two displays images fine. But if {{post.thumbnail}} is none I want to display {{post.image}}... how do I do this?
this is why I need it,,please see the below code
<td>
{% if post.main_image %} //if post has main_image
<img src="{{post.get_image_url}}" class="img-rounded" alt="☺" height="75" width="75"/>//display that image
{% elif post.url %}//if post has url
{% video post.url as my_video %} //setting post.url as my_video(problem starts here I think)
{% if my_video %} //if my_video is there
<img src="{{ my_video.thumbnail }}" class="img-rounded" alt="☺" height="75" width="75"/> //display the video thumbnail
{% else %} //if my_video isn't there and post.url isn't a link to youtube
<img src="{{post.image}}" class="img-rounded" alt="☺ " height="75" width="75"/> //display post.image
{% endif %}
{% endvideo %}
{% else %}
<img src="{{post.thumbnail}}" class="img-rounded" alt="☺" height="75" width="75"/>
{% endif %}
</td>
so main thing to look at it is for post.url if I don't have <img src="{{ my_video.thumbnail }}" class="img-rounded" alt="☺" height="75" width="75"/> I want
<img src="{{post.image}}" class="img-rounded" alt="☺ " height="75" width="75"/> //display post.image