Often new are added by the administration to inform the users about importent news. Problem is that the administration does not have access to the webapplication to direkly enter the news in the webinterface.
Therefor we need a CLI which can be used to direktly insert new news into the database. The tool is aimed to be used by administrational users.
The news extension is ideally able to enhance the allready known ringo-admin command with new commands.
Proposal:
ringo-admin news add <jsonfile>
(The add command can be used to either add new or update existing news items.)
ringo-admin news delete <id>
JSON:
{"subject": "Foo", "date": "YYYY-MM-DD", "text": "Foo text the body of the message"}
If the json contains an id then the command will try to update the news in the database. Otherwise it will create a new news item. If there is no id at all then a new id will be generated.
On default the added news will be added to all users in the system. Later enhancements might be giving a list of usernames, filtering by groups and roles etc.
Background:
Often new are added by the administration to inform the users about importent news. Problem is that the administration does not have access to the webapplication to direkly enter the news in the webinterface.
Therefor we need a CLI which can be used to direktly insert new news into the database. The tool is aimed to be used by administrational users.
The news extension is ideally able to enhance the allready known ringo-admin command with new commands.
Proposal:
<jsonfile>
(The add command can be used to either add new or update existing news items.)<id>
JSON:
If the json contains an
id
then the command will try to update the news in the database. Otherwise it will create a new news item. If there is noid
at all then a newid
will be generated.On default the added news will be added to all users in the system. Later enhancements might be giving a list of usernames, filtering by groups and roles etc.