test
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • timtecsa Friend
    #705692

    On modues such as Featured News and Latest News / Most Read the article title is below the date etc. Can the title be at the top?

    Adam M Moderator
    #705761

    Hi @timtecsa,

    You can open file templatesja_teline_vhtmllayoutsjoomlacontentlinkdefault.php and look for this code :

    <?php if ($useDefList && in_array($positions, array(0, 2))) : ?>
    <aside class="article-aside">
    <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_category', array('item' => $item, 'params' => $aparams, 'position'=>'above')); ?>
    <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_block', array('item' => $item, 'params' => $aparams, 'position' => 'above')); ?>
    </aside>
    <?php endif; ?>

    <?php echo JLayoutHelper::render('joomla.content.blog_style_default_item_title', $item); ?>

    and switch as below :

    <?php echo JLayoutHelper::render('joomla.content.blog_style_default_item_title', $item); ?>

    <?php if ($useDefList && in_array($positions, array(0, 2))) : ?>
    <aside class="article-aside">
    <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_category', array('item' => $item, 'params' => $aparams, 'position'=>'above')); ?>
    <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_block', array('item' => $item, 'params' => $aparams, 'position' => 'above')); ?>
    </aside>
    <?php endif; ?>

    Adam M Moderator
    #752092

    Hi @timtecsa,

    You can open file templatesja_teline_vhtmllayoutsjoomlacontentlinkdefault.php and look for this code :

    <?php if ($useDefList && in_array($positions, array(0, 2))) : ?>
    <aside class="article-aside">
    <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_category', array('item' => $item, 'params' => $aparams, 'position'=>'above')); ?>
    <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_block', array('item' => $item, 'params' => $aparams, 'position' => 'above')); ?>
    </aside>
    <?php endif; ?>

    <?php echo JLayoutHelper::render('joomla.content.blog_style_default_item_title', $item); ?>

    and switch as below :

    <?php echo JLayoutHelper::render('joomla.content.blog_style_default_item_title', $item); ?>

    <?php if ($useDefList && in_array($positions, array(0, 2))) : ?>
    <aside class="article-aside">
    <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_category', array('item' => $item, 'params' => $aparams, 'position'=>'above')); ?>
    <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_block', array('item' => $item, 'params' => $aparams, 'position' => 'above')); ?>
    </aside>
    <?php endif; ?>

    timtecsa Friend
    #705906

    Thanks @Adam M

    Almost there 🙂 Pruning still needed above title.

    And titles are duplicated here:

    http://j344tag.gpmnews.com/congo-b.html

    Tim

    timtecsa Friend
    #752172

    Thanks @Adam M

    Almost there 🙂 Pruning still needed above title.

    And titles are duplicated here:

    http://j344tag.gpmnews.com/congo-b.html

    Tim

    melvine Friend
    #705924

    Hi @timtecsa ,

    You must have missed the last line when you switch

    Now You must have twice this line , it’s why you have the title duplicate

    <?php echo JLayoutHelper::render('joomla.content.blog_style_default_item_title', $item); ?>

    look your code again I think, because the code is good

    melvine Friend
    #752190

    Hi @timtecsa ,

    You must have missed the last line when you switch

    Now You must have twice this line , it’s why you have the title duplicate

    <?php echo JLayoutHelper::render('joomla.content.blog_style_default_item_title', $item); ?>

    look your code again I think, because the code is good

    timtecsa Friend
    #705932

    You are correct 🙂 I’ll delete one of them. However I still have date/category etc top and bottom of title. Only want below title.

    <?php
    /**
    * @package Joomla.Site
    * @sub package Layout
    *
    * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
    * @license GNU General Public License version 2 or later; see LICENSE.txt
    */

    defined('JPATH_BASE') or die;

    $item = $displayData['item'];
    $aparams = $displayData['params'];
    $positions = $aparams->get('block_position', 0);

    $useDefList =
    $aparams->get('show_publish_date') ||
    $aparams->get('show_hits') ||
    $aparams->get('show_category') ||
    $aparams->get('show_author');

    // force to show title
    $item->params->set('show_title', 1);
    $item->params->set('link_titles', 1);
    ?>
    <div class="magazine-item link-item" itemscope itemtype="http://schema.org/Article">
    <div class="col col-media">
    <?php echo JLayoutHelper::render('joomla.content.image.intro', array('item'=>$item, 'img-size'=>'small')); ?>
    </div>

    <div class="col col-content">
    <?php if ($useDefList && in_array($positions, array(0, 2))) : ?>
    <aside class="article-aside">
    <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_category', array('item' => $item, 'params' => $aparams, 'position'=>'above')); ?>
    <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_block', array('item' => $item, 'params' => $aparams, 'position' => 'above')); ?>
    </aside>
    <?php endif; ?>

    <?php echo JLayoutHelper::render('joomla.content.blog_style_default_item_title', $item); ?>

    <?php echo JLayoutHelper::render('joomla.content.blog_style_default_item_title', $item); ?>

    <?php if ($useDefList && in_array($positions, array(0, 2))) : ?>
    <aside class="article-aside">
    <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_category', array('item' => $item, 'params' => $aparams, 'position'=>'above')); ?>
    <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_block', array('item' => $item, 'params' => $aparams, 'position' => 'above')); ?>
    </aside>
    <?php endif; ?>
    </div>
    </div>

    timtecsa Friend
    #752198

    You are correct 🙂 I’ll delete one of them. However I still have date/category etc top and bottom of title. Only want below title.

    <?php
    /**
    * @package Joomla.Site
    * @sub package Layout
    *
    * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
    * @license GNU General Public License version 2 or later; see LICENSE.txt
    */

    defined('JPATH_BASE') or die;

    $item = $displayData['item'];
    $aparams = $displayData['params'];
    $positions = $aparams->get('block_position', 0);

    $useDefList =
    $aparams->get('show_publish_date') ||
    $aparams->get('show_hits') ||
    $aparams->get('show_category') ||
    $aparams->get('show_author');

    // force to show title
    $item->params->set('show_title', 1);
    $item->params->set('link_titles', 1);
    ?>
    <div class="magazine-item link-item" itemscope itemtype="http://schema.org/Article">
    <div class="col col-media">
    <?php echo JLayoutHelper::render('joomla.content.image.intro', array('item'=>$item, 'img-size'=>'small')); ?>
    </div>

    <div class="col col-content">
    <?php if ($useDefList && in_array($positions, array(0, 2))) : ?>
    <aside class="article-aside">
    <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_category', array('item' => $item, 'params' => $aparams, 'position'=>'above')); ?>
    <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_block', array('item' => $item, 'params' => $aparams, 'position' => 'above')); ?>
    </aside>
    <?php endif; ?>

    <?php echo JLayoutHelper::render('joomla.content.blog_style_default_item_title', $item); ?>

    <?php echo JLayoutHelper::render('joomla.content.blog_style_default_item_title', $item); ?>

    <?php if ($useDefList && in_array($positions, array(0, 2))) : ?>
    <aside class="article-aside">
    <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_category', array('item' => $item, 'params' => $aparams, 'position'=>'above')); ?>
    <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_block', array('item' => $item, 'params' => $aparams, 'position' => 'above')); ?>
    </aside>
    <?php endif; ?>
    </div>
    </div>

    timtecsa Friend
    #705933

    @Adam M If it helps I can live with just the category box above the title but not repeated below.

    timtecsa Friend
    #752199

    @Adam M If it helps I can live with just the category box above the title but not repeated below.

    Adam M Moderator
    #706015

    Hi @timtecsa,

    Please open file templatesja_teline_vhtmllayoutsjoomlacontent linkdefault.php and replace it with the code below :

    <?php
    /**
    * @package Joomla.Site
    * @subpackage Layout
    *
    * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
    * @license GNU General Public License version 2 or later; see LICENSE.txt
    */

    defined('JPATH_BASE') or die;

    $item = $displayData['item'];
    $aparams = $displayData['params'];
    $positions = $aparams->get('block_position', 0);

    $useDefList =
    $aparams->get('show_publish_date') ||
    $aparams->get('show_hits') ||
    $aparams->get('show_category') ||
    $aparams->get('show_author');

    // force to show title
    $item->params->set('show_title', 1);
    ?>
    <div class="magazine-item link-item">
    <div class="col col-media">
    <?php echo JLayoutHelper::render('joomla.content.image.intro', array('item'=>$item, 'img-size'=>'small')); ?>
    </div>

    <div class="col col-content">

    <?php echo JLayoutHelper::render('joomla.content.blog_style_default_item_title', $item); ?>

    <?php if ($useDefList && in_array($positions, array(0, 2))) : ?>
    <aside class="article-aside">
    <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_category', array('item' => $item, 'params' => $aparams, 'position'=>'above')); ?>
    <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_block', array('item' => $item, 'params' => $aparams, 'position' => 'above')); ?>
    </aside>
    <?php endif; ?>

    <?php if ($useDefList && in_array($positions, array(1, 2))) : ?>
    <aside class="article-aside">
    <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_category', array('item' => $item, 'params' => $aparams, 'position'=>'above')); ?>
    <?php echo JLayoutHelper::render('joomla.content.info_block.block', array('item' => $item, 'params' => $aparams, 'position' => 'below')); ?>
    </aside>
    <?php endif; ?>
    </div>
    </div>

    Adam M Moderator
    #752269

    Hi @timtecsa,

    Please open file templatesja_teline_vhtmllayoutsjoomlacontent linkdefault.php and replace it with the code below :

    <?php
    /**
    * @package Joomla.Site
    * @subpackage Layout
    *
    * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
    * @license GNU General Public License version 2 or later; see LICENSE.txt
    */

    defined('JPATH_BASE') or die;

    $item = $displayData['item'];
    $aparams = $displayData['params'];
    $positions = $aparams->get('block_position', 0);

    $useDefList =
    $aparams->get('show_publish_date') ||
    $aparams->get('show_hits') ||
    $aparams->get('show_category') ||
    $aparams->get('show_author');

    // force to show title
    $item->params->set('show_title', 1);
    ?>
    <div class="magazine-item link-item">
    <div class="col col-media">
    <?php echo JLayoutHelper::render('joomla.content.image.intro', array('item'=>$item, 'img-size'=>'small')); ?>
    </div>

    <div class="col col-content">

    <?php echo JLayoutHelper::render('joomla.content.blog_style_default_item_title', $item); ?>

    <?php if ($useDefList && in_array($positions, array(0, 2))) : ?>
    <aside class="article-aside">
    <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_category', array('item' => $item, 'params' => $aparams, 'position'=>'above')); ?>
    <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_block', array('item' => $item, 'params' => $aparams, 'position' => 'above')); ?>
    </aside>
    <?php endif; ?>

    <?php if ($useDefList && in_array($positions, array(1, 2))) : ?>
    <aside class="article-aside">
    <?php echo JLayoutHelper::render('joomla.content.info_block.magazine_category', array('item' => $item, 'params' => $aparams, 'position'=>'above')); ?>
    <?php echo JLayoutHelper::render('joomla.content.info_block.block', array('item' => $item, 'params' => $aparams, 'position' => 'below')); ?>
    </aside>
    <?php endif; ?>
    </div>
    </div>

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

This topic contains 13 replies, has 3 voices, and was last updated by  Adam M 9 years, 2 months ago.

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