Hi,
I am using category blog to display my articles. Can you tell me how to link to article when clicking the image?
Thank you and regards,
Hai
<img
<?php if ($images->image_intro_caption):
echo 'class="caption"'.' title="' .$images->image_intro_caption .'"';
endif; ?>
<?php if (!empty($images->image_intro)):?>
style="float:<?php echo $params->get('float_intro') ?>"
<?php else: ?>
style="float:<?php echo $images->float_intro ?>"
<?php endif; ?>
src="<?php echo $images->image_intro; ?>" alt="<?php echo $images->image_intro_alt; ?>"/>
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language)); ?>">
<img
<?php if ($images->image_intro_caption):
echo 'class="caption"'.' title="' .$images->image_intro_caption .'"';
endif; ?>
<?php if (!empty($images->image_intro)):?>
style="float:<?php echo $params->get('float_intro') ?>"
<?php else: ?>
style="float:<?php echo $images->float_intro ?>"
<?php endif; ?>
src="<?php echo $images->image_intro; ?>" alt="<?php echo $images->image_intro_alt; ?>"/>
</a>
<?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
<div class="img-intro-<?php echo $images->float_intro ? $images->float_intro : $params->get('float_intro'); ?> itemImageBlock">
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language)); ?>">
<img
<?php if ($images->image_intro_caption):
echo 'class="caption"'.' title="' .$images->image_intro_caption .'"';
endif; ?>
<?php if (!empty($images->image_intro)):?>
style="float:<?php echo $params->get('float_intro') ?>"
<?php else: ?>
style="float:<?php echo $images->float_intro ?>"
<?php endif; ?>
src="<?php echo $images->image_intro; ?>" alt="<?php echo $images->image_intro_alt; ?>"/>
</a>
</div>
<?php endif; ?>
<?php if ($params->get('show_title')) : ?>
<header>
<h2>
<?php if ($params->get('access-view')) : ?>
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language)); ?>">
<?php echo $this->escape($this->item->title); ?></a>
<?php else : ?>
<?php echo $this->escape($this->item->title); ?>
<?php endif; ?>
</h2>
</header>
<?php endif; ?>
<div class="itemBody<?php if (!$params->get('show_publish_date')) : ?> nodate<?php endif; ?>">
<?php if (!$params->get('show_intro')) : ?>
<?php echo $this->item->event->afterDisplayTitle; ?>
<?php endif; ?>
<?php echo $this->item->event->beforeDisplayContent; ?>
<?php echo $this->item->introtext; ?>
</div>
<?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
<div class="img-intro-<?php echo $images->float_intro ? $images->float_intro : $params->get('float_intro'); ?> itemImageBlock">
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language)); ?>">
<img
<?php if ($images->image_intro_caption):
echo 'class="caption"'.' title="' .$images->image_intro_caption .'"';
endif; ?>
<?php if (!empty($images->image_intro)):?>
style="float:<?php echo $params->get('float_intro') ?>"
<?php else: ?>
style="float:<?php echo $images->float_intro ?>"
<?php endif; ?>
src="<?php echo $images->image_intro; ?>" alt="<?php echo $images->image_intro_alt; ?>"/>
</a>
</div>
<?php endif; ?>
<?php echo $this->item->introtext; ?>
<?php echo $this->item->introtext; ?>
<?php echo $this->item->introtext; ?>