0
Welcome Guest! Login
0 items Join Now

Add title to RokGallery navigation thumbnails?

  • Add title to RokGallery navigation thumbnails?

    Posted 11 years 1 month ago
    • I'm not a coder. I know only enough to get me into trouble, but I was wondering if anyone can give me a way to show the slice title along side the thumbnnail in a rokgallery slideshow.

      I was able to at least show a title, but not the right titles next to their corresponding thumbnails. I think this would be a handy feature in a future release of RokGallery.

      I've enclosed a screen shot of what I have so far:
    • Last Edit: 11 years 1 month ago by roadsider.
  • Re: Add title to RokGallery navigation thumbnails?

    Posted 11 years 1 month ago
    • Anyone have a solution for this? I have to imagine it's just a few lines of code, right? Either way, I'd like to know.

      Thank you!!
    • Last Edit: 11 years 1 month ago by roadsider.
  • Re: Add title to RokGallery navigation thumbnails?

    Posted 11 years 1 month ago
    • Figured it out.

      In modules > mod_rokgallery > templates > slideshow > default.php

      From lines 58-64 Change:

      							<li>
      							<?php if ($passed_params->navigation=='thumbnails'):?>
      				        	<div class="rg-ss-thumb">
      				        		<img title="<?php echo $slice->title;?>" alt="<?php echo $slice->title;?>" src="<?php echo $slice->thumburl;?>" style="max-width: 100%;height: auto;" />
      							</div>
      

      to:
      							<li>
      							<?php if ($passed_params->navigation=='thumbnails'):?>
      				        	<div class="rg-ss-thumb">
      				        		<?php if ($passed_params->title):?><img title="<?php echo $slice->title;?>" alt="<?php echo $slice->title;?>" src="<?php echo $slice->thumburl;?>" style="max-width: 100%;height: auto;" />
      		                	<?php echo $slice->title;?>
      		                <?php endif;?>
      							</div>

Time to create page: 0.064 seconds