Download the PHP package nlybe/elgg-news without Composer
On this page you can find all versions of the php package nlybe/elgg-news. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nlybe/elgg-news
More information about nlybe/elgg-news
Files in nlybe/elgg-news
Package elgg-news
Short Description News and announcements by administrators, news staff and group owners
License GPL-2.0
Homepage https://github.com/nlybe/Elgg-News
Informations about the package elgg-news
Elgg News Plugin
Elgg plugin for posting news and announcements by administrators, group owners or news staff.
Features
This plugin offers administrators the following options:
- Post news items
- Add other Elgg entities as news items
- Customizable news list view
- Option to determine more users who can post news/announcements
- Option to allow post news/announcements on groups, only by group owners
- Option to change the default news icon in settings
- Option to allow or not staff news to set/unset news as featured
- Option to display featured news on sidebar
As an example of "adding other Elgg entities as news items", if there is blog post by any user, administrator can add this as news post. So it will be displayed in list of news but if users click on this item, will redirected to original blog post. The same action could apply to any post like pages, bookmarks, videos etc.
Also administrator can allow to group owners for posting new/announcements inside the group only.
Summarizing permissions, the following options are available:
Who can post site news
- Administrators
- News Staff
Who can set/unset site news as featured
- Administrators
- News Staff (if enabled in settings)
Who can post group news (if enabled in settings)
- Administrators
- Group owner/managers
Who can set/unset group news as featured (if enabled in settings)
- Administrators
- Group owner/managers
How to use a customizable news list view
If need to have a different view for listing news, e.g. in a custom front page, you could use the following code:
You can see an example about how to use this view at elgg-news/views/default/resources/elgg-news/custom_list_view.php. This sample view will be accessible at http://www.YOURCOMMUNITYURL.com/news/custom_list.
Especially about photo sizes, you can use any of the predefined photo size, which are:
Or you can set a custom photo size (width and height) in plugin settings, so for each photo upload on news item, it will be saved in this size too.
How to change the default icon
Site administrators can select the icons to use for default news icon in plugin settings.
If need to add a custom icon, just uploaded it to folders mod/elgg-news/graphics/icons for default news icon. All file uploads will be available for selection in plugin settings.