#_EVENTIMAGEURL is the link to the image. #_EVENTURL is the link to the listing. So you can use the #_EVENTIMAGEURL as the src for an image, but use #_EVENTURL to link to the event.
This is the code I use in my event listing to display an image and link it to the event. (replace { with < and } with > or else it tries to process the statement)
{a href=#_EVENTURL}{img style=”max-height:200px;” src=”#_EVENTIMAGEURL”}{/a}
-
This reply was modified 3 years, 8 months ago by
a2withkids.
-
This reply was modified 3 years, 8 months ago by
a2withkids.
Thread Starter
itskev
(@itskev)
Thanks. I understand that from the placeholder page on their website.
Before updating, my images linked directly to the event. Since the image link to the event is now broken after migrating, I need this back without undoing the migration.
My client had. Now it’s gone so I know I will get an inquiry on why it is now gone.
Sorry for the confusion, I tried #_EVENTIMAGEURL and it seems working fine and displaying the event image. However, did you mean that #_EVENTIMAGEURL is displaying the event image and it links to the event?
Thread Starter
itskev
(@itskev)
Image should appear and include a link on the image to the event itself. So a viewer can click on the image and go straight to the event.
Instead, when I use #_EVENTIMAGEURL, it displays a text URL (not even linked) and no image. I have left it here so you can see the problem. The image should be on the left of the program description after the live radio player.
I can’t leave it there for more than two days so please look at it.
Thread Starter
itskev
(@itskev)
The first part of the event code is this:
<div class="em-item-image {no_image}has-placeholder{/no_image}">
{has_image}
#_EVENTIMAGEURL
{/has_image}
{no_image}
<div class="em-item-image-placeholder">
<div class="date">
<span class="day">#d</span>
<span class="month">#M</span>
</div>
</div>
{/no_image}
</div>
Thread Starter
itskev
(@itskev)
Would love to hear back. My client is waiting for me to get this right.
Let me reiterate the issue: The image should link to the event, not to the actual image. How can this happen?
Thread Starter
itskev
(@itskev)
I solved it. Instead of #EVENTIMAGEURL, I used this:
#_EVENTIMAGE{175,175}