hypejunction/object_sort 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hypejunction/object_sort

最新稳定版本:1.1.3

Composer 安装命令:

composer require hypejunction/object_sort

包简介

Object list sorting for Elgg

README 文档

README

Elgg 2.0

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

Features

  • Implements generic API and UI for sorting object lists
  • By default, provides sorting by Title, Time created, Time updated, Likes count, Comments count
  • Provides a filter to list owned content, friends' content, group content
  • Extendable via hooks

Object Sort

Notes

Limitations

Even though you can pass multiple subtypes to the ege* options, filter and sorting options will be determined by the first subtype in the array. So, if you are listing blogs with discussions, only general "object" and "object:blog" hooks will fire.

Usage

List objects

echo elgg_view('lists/objects', array(
	'options' => array(
		'types' => 'object',
		'subtypes' => 'discussion',
	),
	'callback' => 'elgg_list_entities',
));

Custom sort fields

Use 'sort_fields','object' and 'sort_fields',"$object:$subtype" plugin hooks to add new fields to the sort select input. Use 'sort_relationships','object' and 'sort_relationships',"object:$subtype" plugin hook to add new relationship/metadata filter options.

Use 'rel_options', 'object' to add custom queries to ege* options for specici sort field and direction. Use 'sort_options', 'object' to add custom queries to ege* options for specific relationship/metadata filter option.

统计信息

  • 总下载量: 80
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2016-02-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固