Download the PHP package hypejunction/group_subtypes without Composer
On this page you can find all versions of the php package hypejunction/group_subtypes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hypejunction/group_subtypes
More information about hypejunction/group_subtypes
Files in hypejunction/group_subtypes
Package group_subtypes
Short Description Group subtypes for Elgg
License GPL-2.0
Homepage http://hypejunction.com
Informations about the package group_subtypes
Group Subtypes for Elgg
Features
- API for introducing new group subtypes
- A tool for upgrading existing groups to one of the introduced subtypes
- Admin interface for configuring root level and subgroup subtypes
- Admin interface for creating groups with fixed tool presets
Description
The plugin provides high level hooks and some preliminary UI for introducing group subtypes, spreading out groups across multiple page handlers, using context specific language strings etc. The plugin does not provide actual translations, and does not change existing resource views - those are done in sister plugins (group_lists, group_membership, group_profiles).
Please note that the plugin overwrites some of the group views, which are commonly overwritten by other plugins (e.g. group_tools), so you may need to integrate them if you rely on both functionalities.
Usage
Hooks
'list_subtypes',$identifier
- filters group subtypes to be displayed on an$identifier
page'page_identifier',"$type:$subtype"
- filter the route page identifier for a group of given type and subtype'permissions_check:parent','group'
- filter the permission for a parent entity to have the group as a child
Translations
Once you set up the subtypes, there will be numerous untranslated language keys. I am yet to write a plugin to automate the process. In the meantime, you can do the following:
- Create a new plugin for your translations
- Add your language files to
/languages/
, e.g./languages/en.php
-
Add translations 2 translations for each subtype, e.e. if your subtype is school:
-
In your
start.php
, add the following: - Load the website
- You will now see new language files in
/languages/
, e.g./languages/en.schools.php
- Edit the new files to your needs. You don't need to copy anything, these files will be loaded like other translation files.
- Remove all the code from
start.php
, as you don't want to run that code all the time - Flush the caches and enjoy!
Acknowledgements
This plugin has been sponsored by IvyTies.com - a social network platform for college admissions