Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • Saguaros Moderator
    #1080632

    Hi,

    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

    smartdesi Friend
    #1080642
    This reply has been marked as private.
    Saguaros Moderator
    #1080644

    Hi Hemant,

    Could you also share the URL of page which displays the articles you’re mentioning?

    smartdesi Friend
    #1080645

    It’s on the home page itself – http://nelse1.smartdesi.com.au/

    It’s under Top menu – Home.

    smartdesi Friend
    #1080869

    Any luck with this one? It’s one of the final few things stopping the go-live so your help would be much appreciated.
    Thanks

    Saguaros Moderator
    #1080934

    Hi,

    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.

    smartdesi Friend
    #1081296

    Seems to be working as expected, thanks for your help.

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 2 voices, and was last updated by  smartdesi 6 years, 3 months ago.

The topic ‘Read More links not showing’ is closed to new replies.