Answer the question
In order to leave comments, you need to log in
How to display a tag instead of an image in Joomla 3?
Friends, hello everyone!
Tell me how to be, I display the image of the material:
<div class="img" style="background-image: url(/media/k2/items/cache/'.md5("Image".$item->id).'_S.jpg);">
Answer the question
In order to leave comments, you need to log in
if (file_exist('/media/k2/items/cache/'.md5("Image".$item->id).'_S.jpg')) {
echo '<div class="img" style="background-image: url(....)">';
} else {
echo '<h1>Title</h1>'
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question