On my homepage, I have a zentools module that creates a grid of images. Right now, the images link to the articles they are from, but I would prefer that they link to another page on the site. There doesn't seem to be an option to change the link within the actual module interface, so is there a way to do so by modifying some code, perhaps?
Edit:
defined('_JEXEC') or die('Restricted access');
$last = "";
$class = ' zt-'.$options->theme;
if($options->margin) {
$class .= ' zt-no-margin';
}
// Count number of items in layout
$count = count((array)$layout);
// Load Matchheights
$match_height = "";
if($options->matchheight) {
$doc->addScript($media_path .'js/jquery.matchHeight-min.js');
$match_height = 'data-match-height="zt-match-height"';
}
?>
<div id="zentools-<?php echo $module->id;?>" class="zentools zt-grid zt-responsive-grid <?php echo $class;?>">
<ul>
<?php foreach ($list as $key => $item) {
$item_class = '';
if($item->featured) {
$item_class .= ' zt-featured';
}
?>
<li grid-col="1/<?php echo $options->maxcols;?>" class="zt-item<?php echo $item_class;?>" <?php echo $match_height;?>>
<?php foreach ($columns as $column => $colwidth) { ?>
<div class="zt-col zt-col-<?php echo $colwidth;?>">
<?php $elements = $layout->$column;
$count = 0;
$total_elements = count((array)$elements);
foreach ($elements as $type => $element) {
$settings->count = $count;
if($count == 1) { ?>
<div class="zt-item-container" <?php echo $match_height;?>>
<?php }
$zen->loadElement($element->type, $element, $item, $settings, $zen);
if($count == $total_elements) { ?>
</div>
<?php }
$count ++;
} ?>
</div>
<?php } ?>
</li>
<?php } ?>
</ul>
</div>
<?php if($lightbox->enable) { $zen->loadBlock('lightbox', $module, $settings); } ?>