This Joomla 4 override allows you to display a list of clients testimonials simply using Joomla's mod_articles_category module. At the bottom of this article, you can download the files of the override.

Joomla 4 frontend rendering

PhP markup

<?php
	/**
		* @package     Joomla.Site
		* @subpackage  mod_articles_category
		* @author	   web-eau.net
		* @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
		* @license     GNU General Public License version 2 or later; see LICENSE.txt
	*/
	
defined('_JEXEC') or die;

use Joomla\CMS\Helper\ModuleHelper;
use Joomla\CMS\Language\Text;

if (!$list)
{
	return;
}

?>

<div class="row category-module<?php echo $moduleclass_sfx; ?>">
	
	<?php foreach ($list as $item) : ?>
	
	<div class="col-4 p-3"> <!-- Because we want 3 testimonials in a raw -->
		
		<?php if ($params->get('link_titles') == 1) : ?>
		<h3><a class="list-group-item-action mod-articles-category-title <?php echo $item->active; ?>" href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a></h3>
		<?php else : ?>
		<h3><?php echo $item->title; ?></h3>
		<?php endif; ?>
		
		<div class="card-body">
          
			<blockquote class="blockquote mod-articles-category-introtext">
				<i class="fas fa-quote-left me-2"></i>  <?php echo $item->displayIntrotext; ?>
				<br />
				<footer class="pt-4 blockquote-footer mod-articles-category-writtenb">
					<?php echo $item->displayAuthorName; ?>					
					<?php if ($item->displayDate) : ?>
					<cite title="Source Title">
						<?php echo $item->displayDate; ?>
					</cite>
					<?php endif; ?>				
				</footer>				
			</blockquote>

          </div>
                      
	</div>
	<?php endforeach; ?>
</div>

This Joomla 4 override allows you to display a list of clients testimonials simply using Joomla's mod_articles_category module. At the bottom of this article, you can download the files of the override.

Joomla 3 frontend rendering

PhP markup

<?php
	/**
		* @package     Joomla.Site
		* @subpackage  mod_articles_category
		* @author	   web-eau.net
		* @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
		* @license     GNU General Public License version 2 or later; see LICENSE.txt
	*/
	
	defined('_JEXEC') or die;
	
?>

<ul class="row category-module<?php echo $moduleclass_sfx; ?>">
	
	<?php foreach ($list as $item) : ?>
	
	<li class="col-4"> <!-- Because we want 3 testimonials in a raw -->
		
		<?php if ($params->get('link_titles') == 1) : ?>
		<h3><a class="list-group-item-action mod-articles-category-title <?php echo $item->active; ?>" href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a></h3>
		<?php else : ?>
		<h3><?php echo $item->title; ?></h3>
		<?php endif; ?>
		
		<div class="card-body">
          
			<blockquote class="blockquote mod-articles-category-introtext">
				<i class="fa fa-quote-left mr-1"></i>  <?php echo $item->displayIntrotext; ?>
				<br />
				<footer class="pt-4 blockquote-footer mod-articles-category-writtenby">
					<?php echo $item->displayAuthorName; ?>					
					<?php if ($item->displayDate) : ?>
					<cite title="Source Title">
						<?php echo $item->displayDate; ?>
					</cite>
					<?php endif; ?>				
				</footer>				
			</blockquote>

          </div>
                      
	</li>
	<?php endforeach; ?>
</ul>

web-eau.net

29800 Landerneau

+33 674 502 799

daniel@web-eau.net