JA Teline V and JA Thumbnail: again duplicated intro
access credentials are in this thread
The plugin is Attachments (in Italian Allegati) with some items in plugins (see attached image here).
Please, tell me if this is ok.
- Edited
hello again
after the last update of Jateline V Template, I've again the issue.
I had to put the modified html/com_content/article/default.php (see below) otherwise I get the text and the JA Thumbnail box duplicated again below the article (both instances with the toolbar).
If I disable JA Thumbnail I get only one image and only the intro text.
I would like not to have two instances, not only to hid one instance with the workaround of the code...
Please, help!
See this article for the problem:
[https://www.ondaiblea.it/index.php/it/sapere/cultura/10490-premio-federico-ii,-a-modica-il-22-dicembre-2019](http://) (now apparently corrected with the below code)
Salvo
<?php
/**
* @package Joomla.Site
* @subpackage com_content
*
* @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;
$params = $this->item->params;
$urls = json_decode($this->item->urls);
/*if ($params->get('show_intro')) {
$separator = md5(time());
$this->item->text = $this->item->introtext . $separator . $this->item->fulltext;
$offset = $this->state->get('list.offset');
$dispatcher = JEventDispatcher::getInstance();
$dispatcher->trigger('onContentPrepare', array ('com_content.article', &$this->item, &$this->item->params, $offset));
$dispatcher->trigger('onContentAfterTitle', array ('com_content.article', &$this->item, &$this->item->params, $offset));
$dispatcher->trigger('onContentBeforeDisplay', array ('com_content.article', &$this->item, &$this->item->params, $offset));
$dispatcher->trigger('onContentAfterDisplay', array ('com_content.article', &$this->item, &$this->item->params, $offset));
$explode = explode($separator, $this->item->text);
$this->item->introtext = array_shift($explode);
$this->item->text = implode('', $explode);
}*/
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
JHtml::addIncludePath(T3_PATH . '/html/com_content');
JHtml::addIncludePath(dirname(dirname(__FILE__)));
?>
<?php if (JFactory::getApplication()->input->get ('tmpl') == 'component'): ?>
<?php echo JATemplateHelper::render ($this->item, 'joomla.content.item', array('print' => $this->print, 'item' => $this->item, 'params' => $this->params)) ?>
<?php else: ?>
<?php if (JATemplateHelper::countModules ('article-top')): ?>
<div class="item-row row-top">
<?php echo JATemplateHelper::renderModules('article-top') ?>
</div>
<?php endif ?>
<div class="item-row row-main">
<div class="article-main">
<?php echo JATemplateHelper::render ($this->item, 'joomla.content.item', array('print' => $this->print, 'item' => $this->item, 'params' => $this->params)) ?>
<?php if (isset($urls) && ((!empty($urls->urls_position) && ($urls->urls_position == '0')) || ($params->get('urls_position') == '0' && empty($urls->urls_position))) || (empty($urls->urls_position) && (!$params->get('urls_position')))): ?>
<?php echo $this->loadTemplate('links'); ?>
<?php endif; ?>
</div>
</div>
<?php if (JATemplateHelper::countModules ('article-bottom')): ?>
<div class="item-row row-bottom">
<?php echo JATemplateHelper::renderModules('article-bottom') ?>
</div>
<?php endif ?>
<?php endif ?>
<style type="text/css">
section.article-content p {
display: none;
}
section.article-content div {
display: none;
}
Hi salvomic
I don't see duplicated thumbnail on this page: https://www.ondaiblea.it/index.php/it/sapere/cultura/10490-premio-federico-ii,-a-modica-il-22-dicembre-2019
Could you tell me in details of how to replicate this issue?
and share the credentials of your site so I can check.
- Edited
saguaros
The bug there is if I put the original (not modified) code of default.php (/template/html/com_content/article).
I now modified the code so you cannot see the bug, but the duplicated text and images are there but only hidden...
Then,
1. with the original code I get full article with full article (intro + main) two times
2. two instances of JA Thumbnail plugin also duplicated (4 total): for every series an instance with images, the other not
3. I must modify the code to get only one instance of text and a correct JA Thumbnail instance
I put the credential, please help.
Have a nice day
Salvo
EDIT: besides, after some tries, now JA Thumbanil is ok but JA popup doesn't popup the images, exiting with the message "the requested code cannot be loaded". Mayabe a cache problem, but I deleted caches and the issue is still there...
thank you for help, however no more need to help: we decided to leave "JA Thumbnail" and use now "Sigplus Gallery" with "JA Popup".
So doing, the standard /template/html/com_content/default.php is ok: no duplication at all, no problem.
The bug come out only with JA Thumbnail.
However, if you kindly want still investigate, it could be useful to solve the bug in JA Thumbnail.
Thanks
Salvo
Hi Salvo,
I checked the default.php file in the last topic and it looks like you removed the intro text. You don't need to edit via code, just disable the option: Show Intro Text in Articles Options (or menu item settings if you set it via menu ) https://prnt.sc/qfh74t
JA Teline V retrieves the intro text of an article to show it in blockquote part, if you don't set intro text for an article, it will take full text of article and show there so you can simply disable above option and it will show fine.
Regards