test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • kinkseb Friend
    #155718

    Hello all,

    First, thanks to Joomlart from providing such a beautiful template! I’ve been playing with it for a few weeks, and I’m still discovering new features lol!

    Second, here is my questions 😉

    I’d like to change how the articles / news are presented on the front page. What is would oike is to have the “section” displayed in the header, on the other side of the grey box (same line as author) and the category displayed just below (same line as date).

    The 2 attached pics will describe this better 😉

    I found the code part in:
    templatesja_purity_iihtmlcom_contentfrontpagedefault_item.php

    but I don’t know where and how I can edit the display.

    Can uou help please?

    Thanks in advance!

    Seb


    1. original
    2. new
    gray Friend
    #360604

    Layout of the title and other text is rendered by
    /templates/ja_purity_ii/html/com_content/frontpage/default_item.php
    and namely this block
    [php]
    <?php if (($this->item->params->get(‘show_section’) && $this->item->sectionid) || ($this->item->params->get(‘show_category’) && $this->item->catid)) : ?>
    <?php if ($this->item->params->get(‘show_section’) && $this->item->sectionid && isset($this->item->section)) : ?>
    <span class=”article-section”>
    <?php if ($this->item->params->get(‘link_section’)) : ?>
    <?php echo ‘<a href=”‘.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'”>’; ?>
    <?php endif; ?>
    <?php echo $this->escape($this->item->section); ?>
    <?php if ($this->item->params->get(‘link_section’)) : ?>
    <?php echo ‘</a>’; ?>
    <?php endif; ?>
    <?php if ($this->item->params->get(‘show_category’)) : ?>
    <?php echo ‘ – ‘; ?>
    <?php endif; ?>
    </span>
    <?php endif; ?>
    <?php if ($this->item->params->get(‘show_category’) && $this->item->catid) : ?>
    <span class=”article-section”>
    <?php if ($this->item->params->get(‘link_category’)) : ?>
    <?php echo ‘<a href=”‘.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'”>’; ?>
    <?php endif; ?>
    <?php echo $this->escape($this->item->category); ?>
    <?php if ($this->item->params->get(‘link_category’)) : ?>
    <?php echo ‘</a>’; ?>
    <?php endif; ?>
    </span>
    <?php endif; ?>
    <?php endif; ?>
    [/php]

    To my mind, it’s better to render the layout by CSS, it’s necessary to define new properties for class
    <span class=”article-section”>

    Alternatively, you could add a <div class=”new_class”> for section and category links and assign new styles for this div.

    kinkseb Friend
    #360607

    will try that when I get back from work! Thanks!

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

This topic contains 3 replies, has 2 voices, and was last updated by  kinkseb 14 years, 1 month ago.

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