How to change layout of mod_phocadownloads_latest

Phoca modules - support for all Phoca modules except Phoca Gallery modules
Trubadix
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 11 Jul 2011, 21:08

How to change layout of mod_phocadownloads_latest

Post by Trubadix »

How and where to change the layout of mod_phocadownloads_latest like that:
Image

Title to top, Link under the picture
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48610
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to change layout of mod_phocadownloads_latest

Post by Jan »

Hi, unfortunatelly I don't know this module, so cannot say what should be done.
Jan
If you find Phoca extensions useful, please support the project
Trubadix
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 11 Jul 2011, 21:08

Re: How to change layout of mod_phocadownloads_latest

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48610
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to change layout of mod_phocadownloads_latest

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply