read more button

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Aug 12, 2014 5:14 pm
Reply with quote
Report this post
hello

i don t have read more button in category blog articles, link to site
http://www.iztoknet.com/frklje/zgodovina/zgodovina-2006
please help
User avatar
Senior Boarder

teitbite
Wed Aug 13, 2014 12:36 pm
Reply with quote
Report this post
Hi

Have You enabled showin read more button in menu item or category configuration ? If yes and it's still not showing than please send me an access to joomla panel.
User avatar
Moderator

teitbite
Tue Aug 19, 2014 1:45 pm
Reply with quote
Report this post
Hi

Please try edit file /html/com_content/category/blog_item.php and add this code under the introtext calling line.

Code: Select all
<?php if ($params->get('show_readmore') && $this->item->readmore) :
   if ($params->get('access-view')) :
      $link = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language));
   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, $this->item->language));
      $link = new JURI($link1);
      $link->setVar('return', base64_encode(urlencode($returnURL)));
   endif;
?>
      <p class="readmore">
            <a href="<?php echo $link; ?>">
               <?php if (!$params->get('access-view')) :
                  echo JText::_('COM_CONTENT_REGISTER_TO_READ_MORE');
               elseif ($readmore = $this->item->alternative_readmore) :
                  echo $readmore;
                  if ($params->get('show_readmore_title', 0) != 0) :
                      echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
                  endif;
               elseif ($params->get('show_readmore_title', 0) == 0) :
                  echo JText::sprintf('COM_CONTENT_READ_MORE_TITLE');
               else :
                  echo JText::_('COM_CONTENT_READ_MORE');
                  echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
               endif; ?></a>
      </p>
<?php endif; ?>
User avatar
Moderator

GK User
Wed Aug 20, 2014 6:48 am
Reply with quote
Report this post
yes it works
thanks
User avatar
Senior Boarder


cron