Page 1 of 1

How to change layout of mod_phocadownloads_latest

Posted: 31 Dec 2012, 11:51
by Trubadix
How and where to change the layout of mod_phocadownloads_latest like that:
Image

Title to top, Link under the picture

Re: How to change layout of mod_phocadownloads_latest

Posted: 03 Jan 2013, 13:32
by Jan
Hi, unfortunatelly I don't know this module, so cannot say what should be done.
Jan

Re: How to change layout of mod_phocadownloads_latest

Posted: 03 Jan 2013, 16:10
by Trubadix
Don't worry be Happy
solved self :D
Cange on modules/mod_phocadownloads_latest/tmpl/default.php like that:

Code: Select all

<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
	<?php
		foreach ($list as $item) {
			echo '<div class="phocadownloads_latest'.$params->get('moduleclass_sfx').'">';
			echo '<div class="pd_description">';
//--------------------------------------------
// Output Title
//--------------------------------------------
			if ($item->title != '') {
				echo '<h3>'.$item->title.'</h3>';
			}
//--------------------------------------------
// Output Image
//--------------------------------------------			
			if ($item->image != '') {
				echo $item->image;
			}
//--------------------------------------------
// Output Description
//--------------------------------------------
			if ($item->short_description != '') {
				echo '<p>'.$item->short_description.'</p>';
			}
//--------------------------------------------
// Output Link
//--------------------------------------------
			if ($item->link != '') {
				echo $item->link;
			}
			echo '</div>';
			echo '</div>';
		}
	?>

Best Regards Trubadix

Re: How to change layout of mod_phocadownloads_latest

Posted: 03 Jan 2013, 17:39
by Jan
Ok