I'm using a custom plugin to refine (and constrain) the information that users see on their landing page when they do a login. At the moment, the main area consists simply of a list of groups to which they belong.
The code that produces this is:
// groups
if (elgg_is_active_plugin('groups')) {
echo elgg_view_module('featured', elgg_echo("groups:yours"), $vars['groups'], $mod_params);
}
Hopefully there's a simple tweak to the code provided above, but I can't work out what that would be. Thanks for any help with this!
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Nikolai Shcherbin@rivervanrain

Nikolai Shcherbin - 0 likes
- David@erajad

David - 0 likes
- Nikolai Shcherbin@rivervanrain

Nikolai Shcherbin - 0 likes
- David@erajad

David - 0 likes
- Nikolai Shcherbin@rivervanrain

Nikolai Shcherbin - 1 like
- David@erajad

David - 0 likes
You must log in to post replies.Explain $mod_params
$mod_params is defined in the top of the PHP file this way:
This variable also appears in some other lines that I don't make use of, e.g.:
(I have adapted this code from the standard front page ... I think! :( I set it up a long time ago.)
I've missed $vars['groups'] ...
Shortly, you should use this code:
Elgg default sort the groups by time created.
I don't know where and how you use this module but you can try:
Ah! Of course -- that was the pointer I needed. I found the $vars['groups'] values, but still don't know the "order-by" value I should set. Currently I've got:
What should it be for my desired sort order? (And thank you for your quick replies - much appreciated!)
Or remove this parameter, or use this:
Brilliant! Exactly what I needed - many thanks!