PHPackages                             nlybe/elgg-news - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. nlybe/elgg-news

ActiveElgg-plugin[Utility &amp; Helpers](/categories/utility)

nlybe/elgg-news
===============

News and announcements by administrators, news staff and group owners

5.24.4(2y ago)8793GPL-2.0PHP

Since Oct 4Pushed 2y ago4 watchersCompare

[ Source](https://github.com/nlybe/Elgg-News)[ Packagist](https://packagist.org/packages/nlybe/elgg-news)[ Docs](https://github.com/nlybe/Elgg-News)[ RSS](/packages/nlybe-elgg-news/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (26)Used By (0)

Elgg News Plugin
================

[](#elgg-news-plugin)

[![Elgg 5.0](https://camo.githubusercontent.com/2cb7ed947ca59012a2c6c756378bff6a5e08195fbb4292e1b2973c2859c95f3c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d352e302d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/2cb7ed947ca59012a2c6c756378bff6a5e08195fbb4292e1b2973c2859c95f3c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d352e302d6f72616e67652e7376673f7374796c653d666c61742d737175617265)

Elgg plugin for posting news and announcements by administrators, group owners or news staff.

Features
--------

[](#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

[](#who-can-post-site-news)

- Administrators
- News Staff

### Who can set/unset site news as featured

[](#who-can-setunset-site-news-as-featured)

- Administrators
- News Staff (if enabled in settings)

### Who can post group news (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)

[](#who-can-setunset-group-news-as-featured-if-enabled-in-settings)

- Administrators
- Group owner/managers

How to use a customizable news list view
----------------------------------------

[](#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:

```
echo elgg_view('elgg-news/custom_list_view', [
    'entities' => $entities,    // list of news entities, previously retrieved
    'read_more' => true,        // set true if want to add a "Read more" link for each news item
    'item_class' => '',         // set a custom class on news items, so it could be customized through CSS
    'photo_size' => 'custom',   // set the size of the news photo, see more details below
    'photo_cover' => false,     // set true if want to use the news as cover image, otherwise it will be displayed inline with title and intro
    'photo_class' => '',        // set a custom class on news photo
]);
```

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](http://www.YOURCOMMUNITYURL.com/news/custom_list).

Especially about photo sizes, you can use any of the predefined photo size, which are:

```
elgg_set_config('elggnews_photo_sizes', [
    'topbar' => ['w' => 16, 'h' => 16, 'square' => true, 'upscale' => false],
    'tiny' => ['w' => 25, 'h' => 25, 'square' => true, 'upscale' => false],
    'small' => ['w' => 40, 'h' => 40, 'square' => true, 'upscale' => false],
    'medium' => ['w' => 100, 'h' => 100, 'square' => true, 'upscale' => false],
    'large' => ['w' => 200, 'h' => 200, 'square' => true, 'upscale' => false],
    'master' => ['w' => 2048, 'h' => 2048, 'square' => false, 'upscale' => false],
]);
```

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
------------------------------

[](#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.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 97.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~115 days

Recently: every ~96 days

Total

25

Last Release

732d ago

Major Versions

2.3.x-dev → 3.132018-12-03

3.18 → 4.192021-12-28

3.19 → 4.212022-07-31

4.22 → 5.232023-04-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b3b4c3ed45bff26900a422f0271d660579bb6a309428222fabeedc2329b7979?d=identicon)[nlybe](/maintainers/nlybe)

---

Top Contributors

[![nlybe](https://avatars.githubusercontent.com/u/4714025?v=4)](https://github.com/nlybe "nlybe (85 commits)")[![Beaufort8](https://avatars.githubusercontent.com/u/3209545?v=4)](https://github.com/Beaufort8 "Beaufort8 (1 commits)")[![Yaco](https://avatars.githubusercontent.com/u/139963?v=4)](https://github.com/Yaco "Yaco (1 commits)")

---

Tags

pluginelgg newsannouncements

### Embed Badge

![Health badge](/badges/nlybe-elgg-news/health.svg)

```
[![Health](https://phpackages.com/badges/nlybe-elgg-news/health.svg)](https://phpackages.com/packages/nlybe-elgg-news)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
