2017 © Pedro Peláez
 

elgg-plugin elgg-news

image

nlybe/elgg-news

  • Tuesday, July 31, 2018
  • by nlybe
  • Repository
  • 3 Watchers
  • 3 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Elgg News Plugin

Elgg 5.0, (*1)

Elgg plugin for posting news and announcements by administrators, group owners or news staff., (*2)

Features

This plugin offers administrators the following options:, (*3)

  • 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., (*4)

Also administrator can allow to group owners for posting new/announcements inside the group only., (*5)

Summarizing permissions, the following options are available:, (*6)

Who can post site news

  • Administrators
  • News Staff
  • Administrators
  • News Staff (if enabled in settings)

Who can post group news (if enabled in settings)

  • Administrators
  • Group owner/managers
  • 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:, (*7)

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., (*8)

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

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., (*10)

How to change the default icon

Site administrators can select the icons to use for default news icon in plugin settings., (*11)

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., (*12)

The Versions

31/07 2018

1.12.x-dev

1.12.9999999.9999999-dev

  Sources   Download

05/06 2018

dev-elgg_v3.x

dev-elgg_v3.x https://github.com/nlybe/Elgg-News

News and announcements by administrators, news staff and group owners

  Sources   Download

GPL-2.0

The Requires

 

by Nikos Lyberakis

plugin news elgg announcements

11/02 2018

dev-master

9999999-dev https://github.com/nlybe/Elgg-News

News and announcements by administrators, news staff and group owners

  Sources   Download

GPL-2.0

The Requires

 

by Nikos Lyberakis

plugin news elgg announcements

28/07 2017

2.3.10

2.3.10.0 https://github.com/nlybe/Elgg-News

News and announcements by administrators, news staff and group owners

  Sources   Download

GPL-2.0

The Requires

 

by Nikos Lyberakis

plugin news elgg announcements

22/03 2017

2.3.9

2.3.9.0 https://github.com/nlybe/Elgg-News

News and announcements by administrators, news staff and group owners

  Sources   Download

GPL-2.0

The Requires

 

by Nikos Lyberakis

plugin news elgg announcements

15/03 2017

2.3.8

2.3.8.0 https://github.com/nlybe/Elgg-News

News and announcements by administrators, news staff and group owners

  Sources   Download

GPL-2.0

The Requires

 

by Nikos Lyberakis

plugin news elgg announcements

05/03 2017

2.3.7

2.3.7.0 https://github.com/nlybe/Elgg-News

News and announcements by administrators, news staff and group owners

  Sources   Download

GPL-2.0

The Requires

 

by Nikos Lyberakis

plugin news elgg announcements

04/10 2016

2.0.6

2.0.6.0

  Sources   Download

GPL-2.0

The Requires