-
AuthorPosts
-
seavashr Friend
seavashr
- Join date:
- September 2008
- Posts:
- 21
- Downloads:
- 42
- Uploads:
- 10
- Thanks:
- 3
- Thanked:
- 2 times in 2 posts
March 7, 2015 at 8:32 pm #204439Hi
Joomla offers two image source option in “Images and links” tab:
- Intro image: to be used in blog view
- Full image: to be used in article view
The issue is that Teline V uses intro image for both blog and full article view. IMO this is a bug, because full image has been render useless.
I have traced the rewrite code to
templates/ja_teline_v/html/layouts/joomla/content/image/intro.php and templates/ja_teline_v/html/layouts/joomla/content/image/image.phpCould someone help to change this to normal, that once in article view:
If no full image is selected article view shows nothing
if full image is selected it shows the full imagep.s I ma not the only one with this issue: http://www.joomlart.com/forums/topic/intro-image-appears-in-full-article-view/
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
March 8, 2015 at 3:44 am #562083Hi seavashr ,
Please revert back what you have done lately and follow few steps below:
1. Create a new php file named full_text.php(path: ja/templates/ja_teline_v/html/layouts/joomla/content/image/full_text.php) then put
<?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('_JEXEC') or die;
$item = is_array($displayData) ? $displayData['item'] : $displayData;
$params = $item->params;
$images = json_decode($item->images);
//$images = json_decode($this->item->images);
$imgfloat = (empty($images->float_fulltext)) ? $params->get('float_fulltext') : $images->float_fulltext;$data = array();
$data['item'] = $item;
if (isset($images->image_fulltext) && !empty($images->image_fulltext)) {
$data['image'] = $images->image_fulltext;
$data['alt'] = $images->image_fulltext_alt;
$data['caption'] = $images->image_fulltext_caption;
}
if (is_array($displayData) && isset($displayData['img-size'])) $data['size'] = $displayData['img-size'];?>
<?php if (isset($images->image_fulltext) && !empty($images->image_fulltext)) : ?>
<div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image" itemprop="image">
<?php echo JLayoutHelper::render('joomla.content.image.image', $data); ?>
</div>
<?php endif ?>Click save.
2. Open ja/templates/ja_teline_v/html/layouts/joomla/content/item/default.php then find line 53
<?php echo JLayoutHelper::render('joomla.content.image.intro', $displayData); ?>
change to
<?php echo JLayoutHelper::render('joomla.content.image.full_text', $displayData); ?>
Recheck by adding full article image or remove as you want to see the result.
Thanks
November 13, 2015 at 7:41 pm #724194Hi.
It?s works very well.
But How Can I change the Image Size on the Article?
November 13, 2015 at 7:41 pm #754543Hi.
It?s works very well.
But How Can I change the Image Size on the Article?
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
November 26, 2015 at 11:20 am #758636Hi,
Can I use image.intro in new-featured style 1 and image.full_text in style 2 ? Some idea?
Thank’s,
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
November 27, 2015 at 8:38 am #758690Hi @hgms, @sebfornassier,
-
Kindly provide your site url and clarify about your your problem so I can assist you better.
- By default, the intro image will be used in all layouts except article detail page and the full image will be used in article detail page only. Both style 1 and 2 are using the same PHP file to generate the thumbnail so I’m afraid that you cannot use different behavior for intro / full image.
AuthorPostsViewing 9 posts - 1 through 9 (of 9 total)This topic contains 9 replies, has 5 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
Showing only full image in article view
Viewing 9 posts - 1 through 9 (of 9 total)