Skip to content
This repository has been archived by the owner. It is now read-only.
Sorting API and UI for user lists
PHP JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
languages
screenshots
views/default
.gitattributes
.gitignore
CHANGELOG.md
Gruntfile.js
README.md
autoloader.php
composer.json
manifest.xml
package.json
release.md
start.php

README.md

User List Sorting for Elgg

Elgg 2.0

*** NO LONGER MAINTAINED *** The functionality of this plugin has been moved to hypeLists

Features

  • Implements generic API and UI for sorting user lists
  • By default, provides sorting by Name, Friend count, Registration date, and Last seen
  • Extendable via hooks

User Sort

Usage

List users


// display a sortable list of friends
$options = array(
	'relationship' => 'friend',
	'relationship_guid' => $user->guid,
);

echo elgg_view('lists/users', array(
	'options' => $options,
	'callback' => 'elgg_list_entities_from_relationship',
));

Custom sort fields

Use 'sort_fields','user' plugin hook to add new fields to the sort select input. Use 'sort_options', 'user' to add custom queries to ege* options.

You can’t perform that action at this time.