By Tadiwos H Zewdie on Friday, 23 March 2018
Posted in General Issues
Replies 6
Likes 0
Views 407
Votes 0
HI stacks,

i have been trying to assign a module to a specific ES group. Though i can manage to publish the module in one of the position for the group page, i could not assign specifically to the page of the particular group.so, the module is appearing in other ES groups too. how is it possible to assign a module to only one ES group?

Thanks
Hello,

I'm sorry but it is not possible to assign module to a specific ES group.
·
Friday, 23 March 2018 10:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Nick,

Ok, i understand this is not possible now to do in ES. May I ask please if any other trick to post a module in that specific ES group URL even if it is out side ES component?

Best
·
Friday, 23 March 2018 13:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Currently, in order for you to achieve this you need to do some modifications on your module.Right now, it is depend on which module you wanted to modify currently and some function may not be able to works if it is not included on your modifications. By the way, it is out of our job scope currently as it is fall under customization

But i can point you some of those codes, that might help you achieve this on your module currently. Maybe you can refer on this files .../modules/mod_easysocial_group_menu/mod_easysocial_group_menu.php and see codes below.


// This module will only appear on event pages
$view = JRequest::getVar('view');
$layout = JRequest::getWord('layout');
$id = JRequest::getInt('id');

if ($view != 'groups' || $layout != 'item' || !$id) {
return;
}


This codes is to make sure this module only shown on groups view only. And maybe you can modify them, so that it will shown based each groups, based on their ids.

Please give it a try and see how it goes. Thanks for your understanding
·
Friday, 23 March 2018 16:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Warith,

Thank you for your generous support. But, i think , the code could not be displayed in your above post. Will you please see it?

Regards
·
Tuesday, 27 March 2018 13:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Oh, sorry for any inconvenience caused. I have miss-looked that.

By the way, I have edited them and it should shown correctly now. Please give it a check and see how it goes.
·
Tuesday, 27 March 2018 13:48
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post