Caption on simple gallery and on camera slideshow

More
6 years 9 months ago #9915 by gmonamour
Hi,
Is there a way to have a caption or description of the images of the gallery and camera?
It is enough to display the file image name.
Thanks a lot
Best regards

My site with Solidres www.gmonamour.it/

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #9921 by solidres
Hi,

It is not yet possible, we will move your topic into our feature request forum.

Regards,

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago - 6 years 7 months ago #10325 by gmonamour
Hi,
From pixedelic.com I see that the camera slideshow has the caption system.
I see that on the SR module camera slideshow there is the camera caption class but it is commented
I need the caption very much.
So, is the SR caption system under construction?
Thanks a lot
Best regards

My site with Solidres www.gmonamour.it/
Last edit: 6 years 7 months ago by gmonamour.

Please Log in or Create an account to join the conversation.

More
6 years 6 months ago - 6 years 6 months ago #10530 by gmonamour
Hi,
until Solidres team implement a real solution with image name set from backend I find a simple solution to have the caption using the name of the file of the image.
It is very simple:
in the Layout > Gallery > default_style2.php(in my case)
Change the line from 23 to 32 with this
<div class="camera_wrap <?php echo $params->get('skin') ?>"
     id="reservation_asset_camera_<?php echo $input->getInt('id'); ?>">
	<?php foreach ($displayData['media'] as $media) : ?>
		<div data-thumb="<?php echo $solidresMedia->getMediaUrl($media->value, $scope . '_small'); ?>"
		     data-src="<?php echo $solidresMedia->getMediaUrl($media->value); ?>">
			 <?php  $path=$solidresMedia->getMediaUrl($media->value); $imgname =pathinfo($path, PATHINFO_FILENAME); ?>
			 <div class="camera_caption fadeFromBottom"><?php echo $imgname;?></div>
		</div>
	<?php endforeach; ?>
</div>
Then add this instruction on your custom css to position better the thumbnail bar
.camera_thumbs_cont { margin-top:-80px;}
Done! ;)
Here you can see an example www.gmonamour.it/appartamenti-affitto-ca...grottammare/marina-p
By this way there is not a solution with MultiLanguage but but at least it's something done.
I hope that the solidres team fix that better!
Best regards

My site with Solidres www.gmonamour.it/
Last edit: 6 years 6 months ago by gmonamour.

Please Log in or Create an account to join the conversation.

Moderators: solidres
Powered by Kunena Forum

All the things you need to make your work easier. Did you like Solidres?