Download the PHP package open20/amos-news without Composer
On this page you can find all versions of the php package open20/amos-news. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download open20/amos-news
More information about open20/amos-news
Files in open20/amos-news
Package amos-news
Short Description Sistema AMOS per le news
License
Homepage http://www.open20.it/
Informations about the package amos-news
Amos News
News management.
Installation
You need to require this package and enable the module in your configuration.
add to composer requirements in composer.json
or run command bash:
Enable the News modules in modules-amos.php, add :
add news migrations to console modules (console/config/migrations-amos.php):
If a frontend or a public site are used in your project and news need to be visible outside backend, enable form/wizard fields to allow publication in frontend/home page with params:
The content is suitable to be used with cwh content management. To do so:
- Activate cwh plugin
- Open cwh configuration wizard (admin privilege is required) url:
/cwh/configuration/wizard - search for news in content configuration section
- edit configuration of news and save
If tags are needed enable this module in "modules-amos.php" (backend/config folder in main project) in tag section. After that, enable the trees in tag manager.
If platform uses report and/or comments and you want to enable News to be commented/to report a content, add the model to the configuration in modules-amos.php:
for reports:
for comments:
Configurable fields
Here the list of configurable fields, properties of module AmosNews. If some property default is not suitable for your project, you can configure it in module, eg:
-
validatePublicationDate - boolean, default = true
If this attribute is true the validation of the publication date is active.
By default, you can ONLY validate news with publication_date greater or equal than TODAY.
Set to false to allow validation for news with publication_date less than TODAY. -
filterCategoriesByRole - boolean, default = false
If true, enables category role check via table news_category_roles_mm.
By default news category are available to all users.
In case categories are in association with rbac roles, populate table 'news_category_roles_mm' and set to true the Module property filterCategoriesByRole in configurations: -
hidePubblicationDate - boolean, default = false
The news created are always visible, hide fields publication_from, publication_to -
newsRequiredFields - array, default = ['news_categorie_id', 'titolo', 'status', 'descrizione_breve']
Mandatory fields in news form: by default news category, title and status are mandatory.
If in your platform, for example, you don't want title to be a mandatory field, overwrite newsRequiredFields property as below: -
defaultCategory - integer The ID of the default category pre-selected for the new News
-
autoUpdatePublicationDate - boolean, default = false
This set the auto update of the publication date on the save if the news is published - $enableCategoriesForCommunity - boolean, default = false
- $showAllCategoriesForCommunity - boolean, default = false
- $whiteListRolesCategories - default = ['ADMIN', 'BASIC_USER']
All versions of amos-news with dependencies
2amigos/yii2-ckeditor-widget Version ~1.0
cornernote/yii2-workflow-manager Version *
open20/amos-admin Version ^2.2.0
open20/amos-attachments Version ^1.11.0
open20/amos-comments Version ^1.1
open20/amos-core Version ^1.27.0
open20/amos-dashboard Version ^1.9.1
open20/amos-documenti Version ^1.11.0
open20/amos-layout Version ^1.11.2
open20/amos-notify Version ^1.10.2
open20/amos-report Version ^1.0.5
open20/amos-seo Version *
open20/amos-workflow Version ^1.4.0
open20/agid-organizationalunit Version *
open20/agid-person Version *
open20/agid-service Version *
raoul2000/yii2-workflow Version *
raoul2000/yii2-workflow-view Version *
yiidoc/yii2-redactor Version *
kv4nt/yii2-owl-carousel2 Version *