-
AuthorPosts
-
dpchap015 Friend
dpchap015
- Join date:
- September 2011
- Posts:
- 300
- Downloads:
- 75
- Uploads:
- 57
- Thanks:
- 1
- Thanked:
- 24 times in 1 posts
March 3, 2014 at 6:14 am #195381hi,
i want to know how can i*restrict YOU MAY ALSO LIKE *for a particular category or article??Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
March 3, 2014 at 8:48 am #525049Please explain your question a little more. It would be awesome if you can include a screenshot with explanation so that I could help you out.
dpchap015 Frienddpchap015
- Join date:
- September 2011
- Posts:
- 300
- Downloads:
- 75
- Uploads:
- 57
- Thanks:
- 1
- Thanked:
- 24 times in 1 posts
March 3, 2014 at 9:57 am #525065<em>@Ninja Lead 414277 wrote:</em><blockquote>Please explain your question a little more. It would be awesome if you can include a screenshot with explanation so that I could help you out.</blockquote>
@ninja LeadAs we know you may also like section in ja magz is in every article.
i want to hide this article for a specific article or a category.
suppose i have 3 category (NEWS,PHOTOS,VIDEOS) that contains some articles .
i want to show you may also like section only in photos and videos not in the news category articles.
see the screenshot
http://awesomescreenshot.com/0982fkk3bfNinja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
March 4, 2014 at 3:59 am #525171Please try my workaround below:
+ Subscribe: this is disqus plugin(3rd party) from disqus.com and we could not control on this.
+ To remove YOY MAY ALSO LIKE or category name, you can modify as follows:
Open the templates/ja_magz/html/com_content/article/default_related.php file, find and remove this code:
<h2 class="header-related"><?php echo JText::_('TPL_TITLE_RELATED')?></h2>
Open the templates/ja_magz/html/com_content/article/default_related_item.php file, find and remove code:
<?php if ($irparams->get('show_category')) : ?>
<div class="category-name <?php echo $catparam->get('tpl_cat_color', '') ?>">
<?php $title = $this->escape($this->ritem->category_title);
$url = '<a href="' . JRoute::_(ContentHelperRoute::getCategoryRoute($this->ritem->catslug)) . '">' . $title . '</a>';?>
<?php if ($irparams->get('link_category') AND $this->ritem->catslug) : ?>
<?php echo '<span class="name">', JText::sprintf('COM_CONTENT_CATEGORY', '</span><span>' . $url . '</span>'); ?>
<?php else : ?>
<?php echo '<span>', JText::sprintf('COM_CONTENT_CATEGORY', '</span><span>' . $title . '</span>'); ?>
<?php endif; ?>
</div>
<?php endif; ?>
dpchap015 Frienddpchap015
- Join date:
- September 2011
- Posts:
- 300
- Downloads:
- 75
- Uploads:
- 57
- Thanks:
- 1
- Thanked:
- 24 times in 1 posts
March 4, 2014 at 9:53 am #525245Hi @ninja Lead,
Thanks for the reply; but I think you are confused.
I dont want to remove the “Category Name” but what i actually want is:
I have 3 categories: (1) News; (2) Videos; (3) About
News and Videos category have many articles and people should also see the More relevant articles when they are reading some news or watching a video.
But when they open the page “About Us”; the article is fetched from the category “About”. Since about has some more articles like FAQ’s, T&C; these the user should not see the “You may also like” list under any article that belongs to the category “About” (The “you may also like” should not appear at all when the article is from about category).
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
March 4, 2014 at 11:17 am #525271@dpchap015: I am afraid that will need heavy customization, you should hire a developer to carry out such work, customization support is out of JA support scope. Sorry for not being of much help under this case.
-
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by dpchap015 10 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum