-
AuthorPosts
-
nbiaux Friend
nbiaux
- Join date:
- October 2013
- Posts:
- 31
- Downloads:
- 20
- Uploads:
- 4
- Thanks:
- 6
- Thanked:
- 3 times in 1 posts
March 17, 2014 at 4:04 pm #195866Hi,
Can i configure the module “You may also like” to display articles from different categories ?
Thnaks.Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
March 17, 2014 at 5:51 pm #527015<em>@nbiaux 416728 wrote:</em><blockquote>Hi,
Can i configure the module “You may also like” to display articles from different categories ?
Thnaks.</blockquote> @nbiaux If you like to display articles from different categories.
Please open /templates/ja_magz/html/com_content/article/default_related.php
find this code[PHP]
$articles->setState(‘filter.category_id.include’, true); // Include[/PHP] and change it into[PHP]$articles->setState(‘filter.category_id.include’, false); // exclude[/PHP]
Hope it Helps:D2 users say Thank You to Pankaj Sharma for this useful post
nbiaux Friendnbiaux
- Join date:
- October 2013
- Posts:
- 31
- Downloads:
- 20
- Uploads:
- 4
- Thanks:
- 6
- Thanked:
- 3 times in 1 posts
March 17, 2014 at 7:41 pm #527030Thanks for your reply.
It is possible to include some categories and exclude others ? … by id for exemple ?Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
March 18, 2014 at 3:29 am #527080<em>@nbiaux 416762 wrote:</em><blockquote>Thanks for your reply.
It is possible to include some categories and exclude others ? … by id for exemple ?</blockquote> 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 scope2 users say Thank You to Pankaj Sharma for this useful post
nbiaux Friendnbiaux
- Join date:
- October 2013
- Posts:
- 31
- Downloads:
- 20
- Uploads:
- 4
- Thanks:
- 6
- Thanked:
- 3 times in 1 posts
March 18, 2014 at 3:38 pm #527190I understand but i found an exemple where it s possible to exclude some articles i think…
Maybe i can do the same for category ?
Thanks.ex. $excluded_articles = explode(“rn”, $excluded_articles);
$articles->setState(‘filter.article_id’, $excluded_articles);
$articles->setState(‘filter.article_id.include’, false); // ExcludePankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
March 18, 2014 at 5:14 pm #527211Sorry for not being of much help under this case. This customization support is out of JA support scope.
nbiaux Friendnbiaux
- Join date:
- October 2013
- Posts:
- 31
- Downloads:
- 20
- Uploads:
- 4
- Thanks:
- 6
- Thanked:
- 3 times in 1 posts
March 18, 2014 at 6:39 pm #527219Ok i understand.
I just create an array with categories id i want to exclude.
Thanks again.$tblCat = array(2, 10, 16);
// Filter category
$articles->setState(‘filter.category_id’, $tblCat);
$articles->setState(‘filter.category_id.include’, false); // Excludenbiaux Friendnbiaux
- Join date:
- October 2013
- Posts:
- 31
- Downloads:
- 20
- Uploads:
- 4
- Thanks:
- 6
- Thanked:
- 3 times in 1 posts
March 18, 2014 at 8:22 pm #527226How are related items selected ? it seems to display by created date. Does it use keywords or tags from articles ?
Thanks.Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
March 19, 2014 at 2:56 am #527255Please follow this thread http://www.joomlart.com/forums/topic/how-does-you-may-also-like-work/
-
AuthorPosts
This topic contains 9 replies, has 2 voices, and was last updated by Pankaj Sharma 10 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum