Skip to Content
ModulesCommunity

News

The News module: articles with a cover, categories and tags, editor review, scheduled publication, RSS and a separate project changelog.

The module adds a news section to the site: a feed of articles with covers, categories and tags, an article page with a table of contents and comments, and RSS. An article goes out at once or at the date and time you set, and authors without the publish right hand it to an editor for review. Next to the news sits the "Changelog" for server and site updates by version.

The news feed in the Magazine layout with the top story and categories
DependenciesGamesPermissionsStudio blocksBot commandsCron tasks
Flute 2.0; Migration, Chat, Monitoring optionalanyadmin.news, admin.news.view, news.write, news.publish, news.edit, news.delete"Latest news", "Latest updates"none"News: scheduled publication", every minute; "News: counters and tags cleanup", daily

What appears on the site

The feed opens at /news and from the "News" menu item. It has category pages (/news/c/<slug>), tag pages (/news/tag/<slug>) and the RSS feed /news/rss. A signed-in reader clicks "Subscribe" and gets the "New article" notification. The site search finds published articles.

The changelog opens at /changelog. Each update is a set of lines typed "Added", "Changed", "Balance", "Fixed" or "Removed", and it can belong to one server or mode. A "What's new" button appears in the site header, and updates released after the player's last visit carry a dot.

The module adds two Studio blocks. "Latest news" shows 1 to 12 articles (3 by default) from one category or all of them, in the "Lead story and list", "List only" and "Cards" variants. "Latest updates" shows 1 to 10 updates (4 by default) with the "Server or mode" and "Counts by type" fields.

Install and first setup

Install the module from the marketplace as described in first steps. The admin gets a "News" row in the "Site" group with the "News", "Changelog" and "Settings" tabs: AdminNews.

The article list with the Drafts, In review, Scheduled and Published tabs

Add categories

The "Categories" block sits under the article list. Click "Add category" and set the "Name", "Colour" and "Icon". Categories show above and beside the feed, and an article may have none.

Write the first article

Click "New article". Fill in the "Title" and "Article text" and upload a cover into the "Image" field. The "Summary", up to 400 characters, goes into the feed card; when it is empty, the start of the text is used. Click "Publish" or "Save draft".

Give authors their rights

Rights are given to roles in roles and permissions. An author needs news.write: they write articles and edit their own drafts, and instead of "Publish" they get "Send for review". The author's role also needs access to the admin panel. Give an editor news.publish, and news.edit lets them edit other people's articles.

Turn on the scheduler

Scheduled articles go out only while the scheduler runs php flute cron:run every minute.

If the site is moving from GameCMS and the Migration module is installed, "News can be moved over from GameCMS" appears above the article list. "Move news" brings the articles over with their authors and publish dates.

Scheduled publication

Say the wipe is on Friday at 18:00 and you want to write the announcement today. The article goes out on its own at that minute, and subscribers get the notification when it does.

Save a draft

Create the article and click "Save draft". The schedule button appears once the article is saved.

Click "Schedule"

In the article header click "Schedule". In the "When to publish" window pick the "Publication date" with a time. The site time zone is written under the field, for example "Site time: Europe/Moscow", and the time you enter is in that zone.

The When to publish window with the Publication date field

Check the status

You see "Publication scheduled", and the article moves to the "Scheduled" tab with the "Scheduled" status and a "Goes out" line in the "Publication" block. On the site only you and the editors see it, with the banner "Goes out on … Until then only you and the editors see it."

To move the release, click "Schedule" again and pick another time. "Publish" releases a scheduled article at once, and "Unpublish" turns it back into a draft.

An article from an author without the publish right goes to review first. It shows in the Reports & requests queue on the "Articles in review" tab. The editor publishes it, schedules it or clicks "Return to author" with a note, and the author gets the "Article returned for changes" notification.

A changelog update is scheduled the same way: give it a future "Release date" and it shows up at that moment.

Settings

The settings are on the "Settings" tab of the news screen: AdminNewsSettings. The fields are grouped into "Section", "Feed", "Article page", "Article card", "Discussion", "RSS", "Notifications" and "Changelog".

News settings, the Section and Feed groups
FieldWhat it changesDefault
"Section name", "Line under the heading"the feed heading and the search engine description. Empty: the standard textempty
"Section address"one Latin segment, the old address forwards to the new onenews
"What a guest sees""Feed and articles", "Feed only" or "Nothing""Feed and articles"
"Articles per feed page"1 to 6012
"Feed layout""Magazine" (a grid of cards) or "Timeline" (lines by date)"Magazine"
"Move to the top when published again"an article taken down and published again moves to the top of the feedoff
"Popular over, days"the period of the "Popular" block30
"Tags beside the feed"0 removes the block12
"Similar articles under the text"0 to 6, similar means the same category or a shared tag3
"Comments on a new article""Open", "Premoderated" or "Closed""Open"
"Articles in RSS"1 to 10020
"New article notification""Subscribers", "Everyone" or "Nobody""Subscribers"
"Page address" (changelog)the changelog addresschangelog
the "What's new" button in the headerthe button appears once there is at least one updateon

For developers

The module dispatches flute.news.article_published (ArticlePublished: articleId, slug, categoryId, authorId, scheduled, first), flute.news.article_submitted and flute.news.article_unpublished. The scheduled field marks a release by schedule, and first is true only on the article's first publication.

The news.publish task releases up to 50 due articles per run. With Chat installed an article can be shared in the chat as a card, and with Monitoring changelog updates can be tied to server modes.

How the core side works: Events and listeners, Commands and scheduled tasks.

Troubleshooting

For any other message, use the error lookup.

This is not available for the article in its current status, or the time is wrong

Most often the chosen time has already passed. The time is compared in the site time zone shown in the "Site time" hint under the field. Pick a moment in the future or click "Publish".

A scheduled article did not go out

The article stays on the "Scheduled" tab past its time when the scheduler is not running. Check the "News: scheduled publication" task in AdminScheduler and add cron as described on the scheduler page.

MessageWhat to do
"You cannot edit the article in this status"the author sent the article for review, now an editor with news.edit can change it
"This address is taken or not allowed"change the "Article address" or clear it, and the address is built from the title
"The cover must be an image uploaded to the site"upload the picture into the "Image" field, a link to another site will not do
"This feature is switched off in the news settings"turn on the switch in question, for example "Pinned articles"
"Sign in to read the news"a guest opened an article while "What a guest sees" is "Feed only" or "Nothing"

Next

On this page