By Amadeus on Thursday, 20 August 2015
Posted in General Issues
Replies 5
Likes 0
Views 710
Votes 0
Hello,
I would like to make a custum copy of mod_easysocial_groups but where I choose, pragrammaticaly by id, wish group to display.

So I tryed editing default.php : (where "4" is the cluster id)

<?php
defined( '_JEXEC' ) or die( 'Unauthorized Access' );
$group = FD::group(4);
?>
<div id="fd" class="es mod-es-groups module-register<?php echo $suffix;?> es-responsive">
...
</div>


I'm far of the truth or could it be a good way ?
Hi Ynover,

Currently the only API to display specific group based on id is as follow:
$group = FD::group($groupId);


However if you want to display one group based on its id inside easysocial groups module you can try as follow inside /modules/mod_easysocial_groups/tmpl/default.php,
$groupId = 10; // your group id
foreach ($groups as $group) {
if ($group->id == $groupId) {
// your custom code here
}
}


Hope these help.
·
Wednesday, 26 August 2015 17:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

The module mod_easysocial_groups actually displays a list of groups on the site. I am not entirely sure if I understand what you are trying to achieve here. Can you please advise?
·
Friday, 21 August 2015 03:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,
What I want is to make my own module based on mod_easysocial_groups that would display one unic group based on its id.
·
Monday, 24 August 2015 17:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you
·
Tuesday, 01 September 2015 15:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Ynover,

You are most welcome.
·
Tuesday, 01 September 2015 16:31
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post