Jump to content

Pictures on the downloads page


Jeremy

Recommended Posts

Hi everyone,

Its me again. I've tried everything to get images of my aircraft onto each of my downloads. But whatever link I put in the "Image Link" field never shows up on the actual web-page. Any help / advice would be great!

Thanks,

Jeremy, CEO

Cirrus Air

www.cirrusva.com

Link to comment
Share on other sites

Hi Jeremy, here's an example:

Create a copy of downloads_list.tpl in your skin folder, find:

<li>
	<a href="<?php echo url('/downloads/dl/'.$download->id);?>">
		<?php echo $download->name?></a><br />
      <?php echo $download->description?><br />
         <em>Downloaded <?php echo $download->hits?> times</em></li>

Replace:

<li style="overflow:hidden;">
	<a href="<?php echo url('/downloads/dl/'.$download->id);?>">
		<?php echo $download->name?></a>
           <img src="<?php echo $download->image?>" style="float:right;" /><br />
      <?php echo $download->description?><br />
         <em>Downloaded <?php echo $download->hits?> times</em></li>

This adds the image on the right of the page, like so:

downloads.jpg

You can of course position and style the image/list item as you wish by editing the style="", or adding an id/class. The List Item has "style="overflow:hidden;"" to prevent the images overlapping, if you change the position of the image you may not need this any more.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...