-
AuthorPosts
-
October 26, 2010 at 10:22 am #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.phpbut I don’t know where and how I can edit the display.
Can uou help please?
Thanks in advance!
Seb
-
gray Friend
gray
- Join date:
- October 2009
- Posts:
- 957
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 28
- Thanked:
- 292 times in 230 posts
October 26, 2010 at 10:41 am #360604Layout 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.
-
AuthorPosts
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
Jump to forum
-