Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • dominik_1 Friend
    #199834

    Hello,

    Read More buttons aren’t displayed on FEATURES INTRO 1. How can I fix this?

    I tried to activate the configuration item and option menu item, but it doesn’t work.

    Pankaj Sharma Moderator
    #542966

    HI can you share a screenshot of your problem and PM me the admin credentials of your site ,
    So that i can check it for you

    splico123 Friend
    #542971

    make sure you have it enabled in article options 🙂

    dominik_1 Friend
    #543049

    At the moment I’m working locally.
    However, using joomla since 2011, and I’ve already made ​​a lot of websites with it. I’ve double-checked all the options. In view blog Read more button appears normally.

    I think it’s a bug in the template.

    I also tried to use the Quick Start and the problem is the same.

    dominik_1 Friend
    #543137

    I solved it by myself.

    In templates/purity_iii /html/com_content/category I added at the end of the file features_intro_item.php:

    <blockquote><?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; ?>
    </div>
    </article></blockquote>

    Now read more buttons on Features Intro 1 are ok.

    If you think there is a better way to solve, let me know.

    Nazario A Friend
    #543170

    @dominik_1,

    Glad that you got it sorted at your end. Let me know if you need further help.

    Here is correct code: http://prntscr.com/45f04p

    <?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; ?>

    dominik_1 Friend
    #543209

    It works. Thank you.

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

This topic contains 7 replies, has 4 voices, and was last updated by  dominik_1 9 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum