Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • seavashr Friend
    #204439

    Hi

    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.php

    Could 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 image

    p.s I ma not the only one with this issue: http://www.joomlart.com/forums/topic/intro-image-appears-in-full-article-view/


    1. JA-teline-2015-03-07
    phong nam Friend
    #562083

    Hi 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

    hgms Friend
    #724194

    Hi.

    It?s works very well.

    But How Can I change the Image Size on the Article?

    hgms Friend
    #754543

    Hi.

    It?s works very well.

    But How Can I change the Image Size on the Article?

    Adam M Moderator
    #724862

    Hi @hgms,

    May I know your site url so I can have a look first ?

    Adam M Moderator
    #754609

    Hi @hgms,

    May I know your site url so I can have a look first ?

    hgms Friend
    #754651

    @adam M,

    Inside the article he have the joomla.content.image.full

    How Can I change this image size? Because in the #ja_teline_v theme the imagem is very flat.

    I wanna change de resolution to put the imagem more height!

    How Can I do it ?

    Best regards,

    hgms

    sebfornassier Friend
    #758636

    Hi,

    Can I use image.intro in new-featured style 1 and image.full_text in style 2 ? Some idea?

    Thank’s,

    Adam M Moderator
    #758690

    Hi @hgms, @sebfornassier,

    1. Kindly provide your site url and clarify about your your problem so I can assist you better.

    2. 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.
Viewing 9 posts - 1 through 9 (of 9 total)

This topic contains 9 replies, has 5 voices, and was last updated by  Adam M 8 years, 12 months ago.

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