I also noticed that the intro text is duplicated when it has an internal link, as in the example given in the previous message. If I remove this link, the text will not be duplicated. In this case, the photo located before separator "Read more", for example: https://smirnovblog.ru/novosti-s-kuhni/zharenii-osminog-recept
Why is intro text duplicated?
smalir
Hi
In the Menu items option kindly set the Intro text to Hide.
If issue remain same, kindly edit fields in first post and submit a temp super user login details for staff http://prntscr.com/orf82u
Regards
- Edited
Ninja, thank you. But on other Gavick templates everything works correctly without hiding the intro text And here I see the problem when I put internal link for other pages of my site to intro text. Also duplicated photo, which is posted before "read more" separator. If I switch to another Gavick template, the text will be displayed correctly without hiding the intro text in the Menu. If I'll remove internal link inside intro text, text will not be duplicated, but the photo from intro will continue to be duplicated.
If issue remain same, kindly edit fields in first post and submit a temp super user login details for staff http://prntscr.com/orf82u
Kindly submit details for staff in Edit fields.
Unfortunately, I'm afraid to provide access to ftp Sorry. Is the intro text with internal links duplicated only on my website? Conditions: 1. In menu is set to: Do NOT HIDE intro text. 2. So, in the backend: Intro with internal link + Read more + continuation of the text, in the front I see: Intro + Intro + continued text. If I delete internal link from the intro, then in the front I see: Intro + continued as it should be. Is it really just my problem?
Ninja
Hi!
I created a test site: allcrete.ru, but the same problem persists. I made 2 articles on the site: the first - without a link and without a picture in the intro text - this article is displayed perfectly: https://allcrete.ru/vne-formata/test2. The second article with a link and a photograph in the intro text - this text and photo are duplicated in article: https://allcrete.ru/vne-formata/test2
Access to the administrator part of the site was provided through edit fields.
I also studied the file: templates/gk_decor/html/com_content/article/default.php. Could the problem be here?
<div itemprop="articleBody">
<?php if ($params->get('show_intro', 0)) : ?>
<div class="lead" class="article-intro" itemprop="description">
<?php echo $this->item->introtext; ?>
</div>
<?php endif; ?>
<?php echo str_replace(trim(strip_tags($this->item->introtext)), '', $this->item->text); ?>
</div>
Just for check I installed 4 other templates to the site allcrete.ru. In all of them, the text is displayed correctly. The problem is only on Decor template. I have provided access to the backend of the site and you could personally verify that the problem is observed only with the Decor template. Moreover, on Decor does not work Social API
smalir
Hi
Open default.php
find this
<div itemprop="articleBody">
<?php if ($params->get('show_intro', 0)) : ?>
<div class="lead" class="article-intro" itemprop="description">
<?php echo $this->item->introtext; ?>
</div>
<?php endif; ?>
<?php echo str_replace(trim(strip_tags($this->item->introtext)), '', $this->item->text); ?>
</div>
Replace it with
<div itemprop="articleBody">
<?php // Content is generated by content plugin event "onContentBeforeDisplay" ?>
<?php echo $this->item->event->beforeDisplayContent; ?>
<?php echo $this->item->text; ?>
</div>
I applied it on your site.
Correct way to add images in via Article images and links options.
Regards
- Edited
Ninja, thank you! Now the template works good! Please tell me, how did you manage to fix the default file without access to ftp? And I didn't understand this: "Correct way to add images in via Article images and links options." Sorry for the not-so-smart questions, but I really do not know how to do this.
smalir
Here is Tutorials helps you : https://www.gavick.com/blog/joomla-4-tutorials-how-to-edit-template-files-with-joomla-editor