Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • tomoe Friend
    #185013

    Hi,
    On frontpage view, on mouse over on small image, title of the article and related category are displaying. I would like to display tag instead of category. Any idea to achieve this ? I know I have to alter code files (not a problem).
    Thanks.

    phong nam Friend
    #483775

    Hi tomoe,
    On your server:
    1. Open templatesja_lenshtmlcom_k2ja_lenscategory_item.php
    2. Replace lines:

    <dl class="article-info">
    <?php if($this->item->params->get('catItemCategory')): ?>
    <!-- Item category name -->
    <dd class="category-name">
    <strong><?php echo JText::_('K2_LENS_PUBLISHED_IN'); ?>: </strong>
    <a href="<?php echo $this->item->category->link; ?>"><?php echo $this->item->category->name; ?></a>
    </dd>
    <?php endif; ?>

    with lines

    <?php if(
    $this->item->params->get('catItemTags') ||
    $this->item->params->get('catItemAttachments')
    ): ?>

    <dl class="article-info">
    <!-- Item category name -->
    <dd class="category-name">
    <span><strong><?php echo "Taged in:"; ?></strong></span>
    <?php foreach ($this->item->tags as $tag): ?>
    <span><a href="<?php echo $tag->link; ?>"><?php echo $tag->name; ?></a></span>
    <?php endforeach; ?>
    </dd>
    <?php endif; ?>

    Then Save.
    See my snapshot.

    Regards,

    Leo

    tomoe Friend
    #483948

    Perfact ! Thanks a lot.

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  tomoe 11 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum