-
AuthorPosts
-
dominik_1 Friend
dominik_1
- Join date:
- September 2012
- Posts:
- 27
- Downloads:
- 14
- Uploads:
- 3
- Thanks:
- 2
- Thanked:
- 4 times in 3 posts
July 20, 2014 at 6:59 pm #199834Hello,
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 ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
July 21, 2014 at 7:23 am #542966HI can you share a screenshot of your problem and PM me the admin credentials of your site ,
So that i can check it for yousplico123 Friendsplico123
- Join date:
- January 2007
- Posts:
- 339
- Downloads:
- 80
- Uploads:
- 7
- Thanks:
- 24
- Thanked:
- 93 times in 16 posts
July 21, 2014 at 7:36 am #542971make sure you have it enabled in article options 🙂
dominik_1 Frienddominik_1
- Join date:
- September 2012
- Posts:
- 27
- Downloads:
- 14
- Uploads:
- 3
- Thanks:
- 2
- Thanked:
- 4 times in 3 posts
July 21, 2014 at 11:18 pm #543049At 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 Frienddominik_1
- Join date:
- September 2012
- Posts:
- 27
- Downloads:
- 14
- Uploads:
- 3
- Thanks:
- 2
- Thanked:
- 4 times in 3 posts
July 22, 2014 at 4:14 pm #543137I 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.
1 user says Thank You to dominik_1 for this useful post
Nazario A FriendNazario A
- Join date:
- April 2013
- Posts:
- 1183
- Downloads:
- 0
- Uploads:
- 406
- Thanks:
- 91
- Thanked:
- 284 times in 263 posts
July 23, 2014 at 3:47 am #543170Glad 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; ?>1 user says Thank You to Nazario A for this useful post
-
AuthorPosts
This topic contains 7 replies, has 4 voices, and was last updated by dominik_1 10 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum