-
AuthorPosts
-
Saguaros Moderator
Saguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 12, 2017 at 8:46 am #1080632Hi,
Kindly check the settings of the menu item of that page > Options tab > and see Show ‘readmore’ option, you can set to show there.
Regards
December 12, 2017 at 9:18 am #1080642This reply has been marked as private.Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 12, 2017 at 9:28 am #1080644Hi Hemant,
Could you also share the URL of page which displays the articles you’re mentioning?
December 12, 2017 at 9:29 am #1080645It’s on the home page itself – http://nelse1.smartdesi.com.au/
It’s under Top menu – Home.
December 13, 2017 at 7:51 am #1080869Any luck with this one? It’s one of the final few things stopping the go-live so your help would be much appreciated.
ThanksSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 13, 2017 at 10:40 am #1080934Hi,
I checked the feature intro layout again and by default it doesn’t show the readmore button.
I added this snippet of code to render the readmore button for each article:
<?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; ?> <section class="readmore"> <a class="btn btn-default" href="<?php echo $link; ?>" itemprop="url"> <span> <?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; ?> </span> </a> </section> <?php endif; ?>
into the file: /html/com_content/category/features-intro_item.php
You can see it’s showing now.
1 user says Thank You to Saguaros for this useful post
-
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by smartdesi 7 years ago.
The topic ‘Read More links not showing’ is closed to new replies.