read more doesn't show up

Support desk for Multipurpose Quark Theme
GK User
Tue Feb 24, 2015 2:35 pm
I want to display a category blog, when I click on a menu. That works fine. But the "read more"-link doesn't show up. In all the articles the "read more-link" is added and in the option of the menu the read-more-option is on.

Any suggestions?
User avatar
Fresh Boarder

teitbite
Tue Feb 24, 2015 6:54 pm
Hi

Please tell me the url to the example of such behaviour.
User avatar
Moderator

GK User
Tue Feb 24, 2015 9:53 pm
The link to the page:

http://test.indexphp.de/index.php/texte

With kind regards
User avatar
Fresh Boarder

GK User
Thu Feb 26, 2015 11:33 am
P.S.

The read more link is set in the articles and in the configuration options all button of the read more potions are set to "show".

But the read more link doesn't appear on the page with the category blog.
User avatar
Fresh Boarder

GK User
Thu Feb 26, 2015 12:20 pm
I put this php-code into /html/com_content/category/blog_item.php

<?php if ($params->get('show_readmore') && $this->item->readmore) :
if ($params->get('access-view')) :
$link = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid));
else :
$menu = JFactory::getApplication()->getMenu();
$active = $menu->getActive();
$itemId = $active->id;
$link1 = JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId);
$returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid));
$link = new JUri($link1);
$link->setVar('return', base64_encode($returnURL));
endif; ?>

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

<?php endif; ?>

But I don't know if that is the right solution. Was something missing in the blog_item.php?
User avatar
Fresh Boarder

teitbite
Sat Feb 28, 2015 11:43 am
Hi

From what I see in the /html/com_content/category/blog_item.php file code for "Read more" was removed, to match the design I believe. So if You have copied this code from an equivalent of this layout file from original com_content component files than it is fine.
User avatar
Moderator


cron