J3 Issue ?
avatar HerKle
HerKle
26 Sep 2018

In the options of that menu item the intro text cannot be presented up tot the "readmore". There is only the possibility to cut the text after x characters. Then an ellipse (…) is added below the paragraph, instead of directly after the cut text. This is completely different to the "normal" display of articles in Joomla! showing the complete intro text separated by the readmore link. This different behaviour is irritating for the visitors.

I would like to have a consistent presentation of the content, also when it's archived. Please give archived articles the readmore link back,

Thx!

avatar HerKle HerKle - open - 26 Sep 2018
avatar joomla-cms-bot joomla-cms-bot - change - 26 Sep 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 26 Sep 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 27 Sep 2018
Category com_content
avatar brianteeman brianteeman - change - 27 Sep 2018
Labels Added: J3 Issue
avatar brianteeman brianteeman - labeled - 27 Sep 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Mar 2019
Status New Information Required
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Mar 2019

@HLeithner can you please comment?

avatar HLeithner
HLeithner - comment - 4 Mar 2019

This depends on the template, if you have a custom template it should be fixed there, if its the core template we should fix it.

avatar brianteeman
brianteeman - comment - 4 Mar 2019

it is a core issue

avatar HLeithner
HLeithner - comment - 4 Mar 2019

@brianteeman could you make a PR?

avatar brianteeman
brianteeman - comment - 4 Mar 2019

its a big change that would be a b/c break

avatar HLeithner
HLeithner - comment - 4 Mar 2019

Ok then we can close this here. J4 should be ok with a new template?

@HerKle you should be able to fix this with a template override please ask in the forum if you need help with this.

avatar HLeithner HLeithner - change - 4 Mar 2019
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2019-03-04 19:31:11
Closed_By HLeithner
avatar HLeithner HLeithner - close - 4 Mar 2019
avatar brianteeman
brianteeman - comment - 4 Mar 2019

it is not a template issue!!!!!! Have you never built a web site with Joomla

avatar HLeithner
HLeithner - comment - 4 Mar 2019

never used archive no sorry

avatar brianteeman
brianteeman - comment - 4 Mar 2019

Clearly

avatar HLeithner
HLeithner - comment - 4 Mar 2019

It took me 20 minutes to figure out how to fix it with a template override.

make a copy of this template file: components/com_content/views/archive/tmpl/default_items.php

Modify line 132 from:

<div class="intro" itemprop="articleBody"> <?php echo JHtml::_('string.truncateComplex', $item->introtext, $params->get('introtext_limit')); ?> </div>

to

<?php echo $item->introtext; ?>
<?php echo JLayoutHelper::render('joomla.content.readmore', array('item' => $item, 'params' => $params, 'link' => $link)); ?>

that would be enough to achieve the layout the opener wants, maybe some settings have to be set in the parameter so the readmore buttons looks the same.

So yes I already build a joomla website.

avatar Joomv
Joomv - comment - 4 Mar 2019

Just a friendly reminder to be kind on Github. There is no need to be rude.
Thanks.

Add a Comment

Login with GitHub to post a comment