2017 © Pedro Peláez
 

elgg-plugin hypecategories

Categories for Elgg

image

hypejunction/hypecategories

Categories for Elgg

  • Thursday, February 11, 2016
  • by hypeJunction
  • Repository
  • 5 Watchers
  • 3 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 9 Open issues
  • 12 Versions
  • 0 % Grown

The README.md

hypeCategories

Categories and taxonomy for Elgg, (*1)

Features

  • Support for site-wide and internal group categories
  • User-friendly UI for adding and managing categories
  • Support for category icons

Configuration

  • If you are working with a large taxonomy, you will most likely need to update your PHP runtime configuration. If, when managing categories, you loose entries or hierarchies, increase the value of max_input_vars http://www.php.net/manual/en/info.configuration.php

Usage

Adding category input

To add a category input to your form, add the following code:, (*2)

$input = elgg_view('input/category', array(
    'name_override' => 'my_categories', // do not include, unless you are attaching some custom event hooks to process user input
    'multiple' => true, // specifies whether users should have an option to select multiple categories
    'entity' => $entity, // an entity, which is being edited (will be used to obtain currently selected categories, unless 'value' parameter is present)
    'value' => array(), // an array of category GUIDs to be selected by default
));

By default, the plugin will listen to 'create','all' and 'update','all' events and create a filed_in relationship with selected categories (and all parent categories)., (*3)

To display entity categories, use:, (*4)

$output = elgg_view('output/category', array(
    'entity' => $entity // Entity for which the categories should be displayed
));

Custom category subtypes

To add custom category subtypes to the workflow globally, update 'taxonomy_tree_subtypes' config value., (*5)

For example, you may want to have multiple taxonomies for categorizing content by topic, by context etc. The easiest way to achieve that, is by using different category subtypes, e.g. topic, cluster, grouping etc, or blog_categories, bookmark_categories etc., (*6)

Context-based filtering of category subtypes can be achieved via 'get_subtypes', 'framework:categories' hook., (*7)

Internationalization

You can internationalize category names by adding translations to your language files. Translations should be namespaced with "category:$category_title"., (*8)

Versioning

The master branch has been switched to Elgg 1.9.+ development. Legacy 1.8 code is in elgg1.8 branch., (*9)

Upgrading to 3.1

The focus of 3.1 is to improve performance. There are several changes that should not but may affect your install:, (*10)

  1. Subcategory querying no longer uses LEFT JOIN for retrieving 'priority' metadata. If you are missing categories from your list, run a batch query and set priority on all your categories to 0 (this will place them at the end of the list)

Screenshots

alt text alt text alt text alt text, (*11)

The Versions

11/02 2016

dev-master

9999999-dev http://hypejunction.com

Categories for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin taxonomy categories elgg

22/09 2015

dev-dev

dev-dev http://hypejunction.com

Categories for Elgg

  Sources   Download

GPL-2.0

The Development Requires

by Ismayil Khayredinov

plugin taxonomy categories elgg

22/09 2015

4.2.0

4.2.0.0 http://hypejunction.com

Categories for Elgg

  Sources   Download

GPL-2.0

The Development Requires

by Ismayil Khayredinov

plugin taxonomy categories elgg

24/08 2015

4.1.2

4.1.2.0 http://hypejunction.com

Categories for Elgg

  Sources   Download

GPL-2.0

The Development Requires

by Ismayil Khayredinov

plugin taxonomy categories elgg

15/08 2015

4.1.1

4.1.1.0 http://hypejunction.com

Categories for Elgg

  Sources   Download

GPL-2.0

The Development Requires

by Ismayil Khayredinov

plugin taxonomy categories elgg

15/08 2015

4.1.0

4.1.0.0 http://hypejunction.com

Categories for Elgg

  Sources   Download

GPL-2.0

The Development Requires

by Ismayil Khayredinov

plugin taxonomy categories elgg

04/08 2015

4.0.0

4.0.0.0 http://hypejunction.com

Categories for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin taxonomy categories elgg

15/01 2015

3.0.1

3.0.1.0 http://hypejunction.com

Categories for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin taxonomy categories elgg

03/09 2014

3.0.0

3.0.0.0 http://hypejunction.com

Categories for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin taxonomy categories elgg

03/09 2014

dev-elgg1.8

dev-elgg1.8 http://hypejunction.com

Categories for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin taxonomy categories elgg

29/04 2014

2.1.0

2.1.0.0 http://hypejunction.com

Categories for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin taxonomy categories elgg

29/04 2014

2.0.1

2.0.1.0 http://hypejunction.com

Categories for Elgg

  Sources   Download

GPL-2.0

The Requires

 

by Ismayil Khayredinov

plugin taxonomy categories elgg