J-BusinessDirectory - Event images

Support Forum

 
 

 

In the event the description of the photo is not displayed. I have uploaded some pictures to the event. Below the images you can enter text, but this text is not displayed in the frontend.

4 replies

Hi,

Currently the picture description is used for alt tag of the image in the gallery.

I have mine setup to show for my company listings. I assume this will also work in the events.

Override the file: site\include\image_gallery.php:



<div class='picture-container'>
<ul id="imageGallery" class="gallery list-unstyled">
<?php if (!empty($this->pictures)) { ?>
<?php foreach($this->pictures as $picture) { ?>
<li data-thumb="<?php echo JURI::root().PICTURES_PATH.$picture->picture_path ?>">
<img src="<?php echo JURI::root().PICTURES_PATH.$picture->picture_path ?>" alt="<?php echo isset($picture->picture_info)?$picture->picture_info:""?>"/>
<div class="caption">
<?php echo !empty($picture->picture_info)?$picture->picture_info:""?>
</div>
</li>
<?php } ?>
<?php } else { ?>
<?php echo JText::_("LNG_NO_IMAGES"); ?>
<?php } ?>
</ul>
<div style="clear:both;"></div>
</div>

You'll have to write some CSS to improve it.

Devs: This would be a nice toggle setting to have in the extension. 

Hi,

thx for your support... It works really well.

Here are a suitable CSS

.caption {
    height: auto;
    line-height: normal;
    margin: 10px 0px;
}

http://together-magazine.de/event/maximilian-ritterspiele-horb-2016

Suggestion for displaying events:

Events can only be listed currently, if they are allocated to a business entry. I would like to add events, without having to be assigned to a business entry.

Then you could enter general events and which that belong to a business entry.

THX

 
 
 

5 Item(s)

Show per page