Support

Support is part of Event Gallery Extended.

Please get a subscription if you need support. Feel free to use the ticket system or the contact form for reporting defects or pre-sale questions. Make sure you're logged in in order to be able to create a new ticket.

For general information you can also jump to the manual.

Subscribe now!

#3073 – eventgaellery and tags

Posted in ‘Event Gallery Extended’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Wednesday, 14 March 2018 16:54 UTC
ita4012
Hi. As you can see in this page https://www.waterwind.it/new/en/windsurfing/learning/schools-and-rental-centers/344-spain/876-tenerife-windsurf-solution-el-medano.html, in joomla similar tags module (see bottom), tagged eventgallery events are listed in quite unpleasant way. Is there a way to change that? It would be nice to have just the event title/name (or, at least, to avoid language code to appear).

Thanks

Custom Fields

Event Gallery Version 3.8.2
Joomla Version 3.8.5
 
Wednesday, 14 March 2018 18:26 UTC
sbluege
Hi,

I use a content plugin to fix the output. The main tag component uses this plugin. The module does not. But you can add a template override for that module. It will call content plugins and the output will look as expected.

modules\mod_tags_similar\tmpl\default.php

<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_tags_similar
 *
 * @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;
$dispatcher = JEventDispatcher::getInstance();
?>
<?php JLoader::register('TagsHelperRoute', JPATH_BASE . '/components/com_tags/helpers/route.php'); ?>
<div class="tagssimilar<?php echo $moduleclass_sfx; ?>">
<?php if ($list) : ?>
	<ul>
	<?php foreach ($list as $i => $item) : ?>
	<?php $item->text=''; $dispatcher->trigger('onContentPrepare', array ('com_tags.tag', &$item, &$params)); ?>
		<li>
			<?php if (($item->type_alias === 'com_users.category') || ($item->type_alias === 'com_banners.category')) : ?>
				<?php if (!empty($item->core_title)) :
					echo htmlspecialchars($item->core_title, ENT_COMPAT, 'UTF-8');
				endif; ?>
			<?php else : ?>
				<?php $item->route = new JHelperRoute; ?>
				<a href="/<?php echo JRoute::_(TagsHelperRoute::getItemRoute($item->content_item_id, $item->core_alias, $item->core_catid, $item->core_language, $item->type_alias, $item->router)); ?>">
					<?php if (!empty($item->core_title)) :
						echo htmlspecialchars($item->core_title, ENT_COMPAT, 'UTF-8');
					endif; ?>
				</a>
			<?php endif; ?>
		</li>
	<?php endforeach; ?>
	</ul>
<?php else : ?>
	<span><?php echo JText::_('MOD_TAGS_SIMILAR_NO_MATCHING_TAGS'); ?></span>
<?php endif; ?>
</div>



Please don't change the original file. Place it in your templates override folder to avoid issue with updates in the future.
 
Wednesday, 14 March 2018 21:59 UTC
ita4012
Thank you. Following your suggesting, I solved that issue.

Regards
 
Thursday, 15 March 2018 06:58 UTC
sbluege
Great! You're welcome.