Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • dpchap015 Friend
    #195381

    hi,
    i want to know how can i*restrict YOU MAY ALSO LIKE *for a particular category or article??

    Ninja Lead Moderator
    #525049

    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.

    dpchap015 Friend
    #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 Lead

    As 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/0982fkk3bf

    Ninja Lead Moderator
    #525171

    Please 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 Friend
    #525245

    Hi @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 Moderator
    #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.

    dpchap015 Friend
    #525455

    @ninja Lead
    I solved this problem by add a new article layout file , that does not contain you may also like section.
    Thanks for support.

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

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