• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Display single image

Display single image 9 years 3 months ago #29680

I have an image upload field that I would like to display on the details page at the top at its normal size. I do not want the image to display as a gallery. Is it possible to display the image by itself?
The administrator has disabled public write access.

Display single image 8 years 7 months ago #32207

  • msena
  • msena's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Delete in dafult_gallery.php :
foreach ($this->images as $i => $image)
		{
			$src = RSDirectoryHelper::getImageURL($image->hash, 'big');
 
			?>    	
			<div class="thumbnail<?php echo $i ? ' hidden-desktop hidden-tablet' : ''; ?>">
 
 
 
				<a href="<?php echo RSDirectoryHelper::getImageURL($image->hash); ?>">
					<img src="<?php echo $src; ?>" alt="<?php echo $this->escape($image->original_file_name); ?>" />
				</a>
 
 
			</div>
 
			<?php
		}
and insert:
foreach ($this->images as $i => $image)
		{
			$src = RSDirectoryHelper::getImageURL($image->hash);
 
			?>    	
			<div class="thumbnail<?php echo $i ? ' hidden-desktop hidden-tablet' : ''; ?>">
 
			<div class="itemImageBlock">
		  <span class="itemImage">
 
				<a class="modal" href="<?php echo RSDirectoryHelper::getImageURL($image->hash); ?>">
					<img class="img-responsive" src="<?php echo $src; ?>" alt="<?php echo $this->escape($image->original_file_name); ?>" />
				</a>
 
			</span>	
			</div>	
			</div>
 
			<?php
		}
:evil:
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!