test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • Henning Friend
    #197718

    Hi Guys,

    First off, just love the new template ‘JA Sugite’. My question; Is there a way to add or make the date visible on the items of the Portfolio layout?

    Regards,
    Henning

    chavan Friend
    #534883

    This is a kind of customization, I have showed the created date.

    Go to this File : templatesja_sugitehtmlcom_contentcategoryportfolio_item.php

    Find this code:

    <h2 class="article-title">
    <?php if ($params->get('link_titles') && $params->get('access-view')) : ?>
    <a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>"> <?php echo $this->escape($this->item->title); ?></a>
    <?php else : ?>
    <?php echo $this->escape($this->item->title); ?>
    <?php endif; ?>
    </h2>

    Add this code after the above code

    <?php if ($params->get('show_create_date')) : ?>
    <dl>
    <dd class="create">
    <i class="fa fa-clock-o"></i>
    <?php echo JHtml::_('date', $this->item->created, JText::_('DATE_FORMAT_LC3')); ?>
    </dd>
    </dl>
    <?php endif; ?>

    Henning Friend
    #535087

    Hi Chavan,

    Thanks for the help. Works perfectly, really appreciate it! My only concern is that the date replaces the Title, is there a way to make both visible?

    Regards,
    Henning

    Henning Friend
    #535089

    I managed to find it. I just needed to change the line height of the date. Thanks again Chavan!

    chavan Friend
    #535110

    yes I forgot to mention that. but you made some changes on the code. Nice

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

This topic contains 5 replies, has 2 voices, and was last updated by  chavan 10 years, 6 months ago.

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