Features

Gazette

The town newspaper: reading the paper, the reporters' writing desk, who may publish and moderate, and Config.News.

Gazette (news) is the town newspaper. Everybody reads it; players of the newspaper job write and publish. Settings are in apps/news/config.lua (Config.News).

#What the player can do

Readers

  • Read the published paper: sections, pages and a search.
  • Open an article with its title, summary, picture or engraving and caption.

Reporters (jobs in PublishJobs)

  • Use the writing desk: drafts and published articles.
  • Write an article in three steps: a section, a title, a summary, the text, and a picture link or one of the engravings with a caption. See the proof, then publish.
  • Remove their own articles.

Players with the ACE in ModeratorAce can remove any article.

#What it needs

Need Notes
Signal Reading the current paper needs receive signal; saving, publishing and removing need send signal
Job Publishing needs a job and grade in PublishJobs

#Settings

Key Default What it does
Enabled true Turns the app on
PublishJobs { newspaper = 0 } Job and lowest grade allowed to write and publish
ModeratorAce 'pocketbook.news.moderate' ACE that may remove any article
PageSize 10 Articles per page
MaxTitle / MaxBody 120 / 12000 Title and text length
MaxSummary / MaxCaption 240 / 160 Summary and caption length
MaxDrafts 50 Drafts per writer
Categories general, trade, law, culture, community Sections and their names
Illustrations train, cattle, theatre, fair, sheriff, mine, fishing, caravan Engravings a writer can pick. Set one to false to hide it
ImageHosts {} Hosts allowed for article pictures. Empty: any public HTTPS host

Give the moderator right in server.cfg:

cfgadd_ace group.admin pocketbook.news.moderate allow

More newspaper jobs:

luaPublishJobs = { newspaper = 0, reporter = 1 },

apps/news/config_server.lua holds the app's Logs settings.