-
AuthorPosts
-
timtecsa Friend
timtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
October 18, 2015 at 5:07 pm #705692On 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 ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
October 19, 2015 at 4:09 am #705761Hi @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 ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
October 19, 2015 at 4:09 am #752092Hi @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 Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
October 19, 2015 at 2:16 pm #705906Thanks @Adam M
Almost there 🙂 Pruning still needed above title.
And titles are duplicated here:
http://j344tag.gpmnews.com/congo-b.html
Tim
timtecsa Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
October 19, 2015 at 2:16 pm #752172Thanks @Adam M
Almost there 🙂 Pruning still needed above title.
And titles are duplicated here:
http://j344tag.gpmnews.com/congo-b.html
Tim
melvine Friendmelvine
- Join date:
- August 2012
- Posts:
- 160
- Downloads:
- 162
- Uploads:
- 2
- Thanks:
- 37
- Thanked:
- 33 times in 9 posts
October 19, 2015 at 4:23 pm #705924Hi @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
1 user says Thank You to melvine for this useful post
melvine Friendmelvine
- Join date:
- August 2012
- Posts:
- 160
- Downloads:
- 162
- Uploads:
- 2
- Thanks:
- 37
- Thanked:
- 33 times in 9 posts
October 19, 2015 at 4:23 pm #752190Hi @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
1 user says Thank You to melvine for this useful post
timtecsa Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
October 19, 2015 at 5:07 pm #705932You 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 Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
October 19, 2015 at 5:07 pm #752198You 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 Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
timtecsa Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
October 20, 2015 at 9:16 am #706015Hi @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>1 user says Thank You to Adam M for this useful post
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
October 20, 2015 at 9:16 am #752269Hi @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>1 user says Thank You to Adam M for this useful post
-
AuthorPosts
This topic contains 13 replies, has 3 voices, and was last updated by Adam M 9 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum