elitedivision/amos-news
Sistema AMOS per le news
Requires
- php:>=5.4.0
- 2amigos/yii2-ckeditor-widget:~1.0
- cornernote/yii2-workflow-manager:*
- elitedivision/amos-admin:^2.2.0
- elitedivision/amos-attachments:^1.11.0
- elitedivision/amos-comments:^1.1
- elitedivision/amos-core:^1.27.0
- elitedivision/amos-dashboard:^1.9.1
- elitedivision/amos-documenti:^1.11.0
- elitedivision/amos-layout:^1.11.2
- elitedivision/amos-notify:^1.10.2
- elitedivision/amos-report:^1.0.5
- elitedivision/amos-seo:*
- elitedivision/amos-workflow:^1.4.0
- open20/agid-organizationalunit:*
- open20/agid-person:*
- open20/agid-service:*
- raoul2000/yii2-workflow:*
- raoul2000/yii2-workflow-view:*
- yiidoc/yii2-redactor:*
- kv4nt/yii2-owl-carousel2:*
Requires (Dev)
- yiisoft/yii2-faker:*
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-master
- 1.28.4
- 1.28.3
- 1.28.2
- 1.28.1
- 1.28.0
- 1.27.2
- 1.27.1
- 1.27.0
- 1.26.1
- 1.26.0
- 1.23.0
- 1.22.0
- 1.21.1
- 1.21.0
- 1.20.1
- 1.20.0
- 1.19.1
- 1.19.0
- 1.17.1
- 1.17.0
- 1.16.0
- 1.15.0
- 1.12.2
- 1.12.1
- 1.12.0
- 1.11.1
- 1.11.0
- 1.10.0
- 1.9.0
- 1.8.1
- 1.8.0
- 1.7.3
- 1.7.0
- 1.6.19
- 1.6.18
- 1.6.17
- 1.6.16
- 1.6.15
- 1.6.14
- 1.6.13
- 1.6.12
- 1.6.11
- 1.6.10
- 1.6.9
- 1.6.8
- 1.6.7
- 1.6.6
- 1.6.5
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.11.x-dev
- 1.5.11
- 1.5.10.x-dev
- 1.5.9.x-dev
- 1.5.9
- 1.5.8.x-dev
- 1.5.7.x-dev
- 1.5.6.x-dev
- 1.5.5.x-dev
- 1.5.4.x-dev
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5
- 1.4
- 1.3.1
- 1.3
- 1.2
- 1.1.18
- 1.1.17
- 1.1.16
- 1.1.15
- 1.1.14
- 1.1.13
- 1.1.12
- 1.1.11
- 1.1.10
- 1.1.9
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-test/1.43.1/1
- dev-michelec/1.43.0/1
- dev-test/1.43.0/2
- dev-test/1.43.0/1
- dev-ssgiovanni/1.41.1/3
- dev-gianluca/1.42.0/1
- dev-victor/1.38.0/4
- dev-test/1.42.0/1
- dev-fabiano/1.42.0/1
- dev-fabiano/1.41.1/1
- dev-test/7.42.0/1
- dev-test/1.41.1/2
- dev-michelec/1.41.1/2
- dev-stefanob/1.41.1/1
- dev-test/1.41.1/1
- dev-test/1.38.0/2
- dev-gianluca/1.41.0/1
- dev-fabiano/1.32.0/1
- dev-test/1.32.1/1
- dev-gianluca/1.40.0/1
- dev-simonem/1.39.0/id33635
- dev-simonem/1.41.1/1
- dev-dof/1.41.0/1
- dev-test/1.41.0/1
- dev-test/1.38.0/1
- dev-victor/1.40.0/2
- dev-comune_fe
- dev-test/1.40.0/1
- dev-test/1.39.0/2
- dev-michelec/1.39.0/2
- dev-test/1.38.0/3
- dev-victor/1.38.0/3
- dev-elena/1.38.0/3
- dev-gianluca/1.38.0/2
- dev-test/1.39.0/1
- dev-fabiano/1.38.0/1
- dev-michelec/1.38.0/1
- dev-fabiano/1.37.0/1
- dev-filippo/1.37.0/1
- dev-simonem/27738-vapt-preference
- dev-test/1.12.1/1-vapt
- dev-cesari/1.36.0/1
- dev-test/1.37.0/1
- dev-test/1.36.0/1
- dev-test/1.28.3/1
- dev-stefano/1.28.3/1
- dev-cesari/1.31.1/2
- dev-test/1.31.1/2
- dev-test/1.35.0/1
- dev-cesari/1.31.1/1
- dev-fabiano/1.33.0/1
- dev-test/1.34.0/1
- dev-test/1.31.1/1
- dev-test/1.33.0/1
- dev-test/1.32.0/1
- dev-fabiano/1.31.0/1
- dev-test/1.31.0/1
- dev-gianluca/1.22.1/1
- dev-gianluca/1.28.2/1
- dev-gianluca/1.22.0/2
- dev-fabiano/1.30.0/1
- dev-test/1.30.0/1
- dev-fabiano/1.28.3/1
- dev-test/1.29.0/1
- dev-test/1.28.2/1
- dev-fabiano/1.28.2/1
- dev-test/1.27.2/1
- dev-fabiano/1.27.2/1
- dev-cesari/1.27.2/1
- dev-test/1.28.0/1
- dev-fabiano/1.27.1/2
- dev-test/1.27.1/3
- dev-cesari/1.27.1/2
- dev-test/1.27.1/2
- dev-scarface_piattelite/test/1.27.1/1
- dev-test/1.27.1/1
- dev-cesari/1.27.1/1
- dev-test-merge
- dev-cesari/test-merge
- dev-cesari/finlombarda
- dev-test/1.23.0/5
- dev-test/1.27.0/1
- dev-test/1.26.0/2
- dev-test/1.26.1/2
- dev-scarface_piattelite/test/1.26.1/2
- dev-test/1.26.1/1
- dev-gianluca/1.23.0/fix_permessi_community_widgets
- dev-filippo/1.23.0/4
- dev-dof/1.26.1/1
- dev-daniele/1.26.1/1
- dev-cesari/1.26.1/2
- dev-cesari/1.26.1/1
- dev-fabiano/1.26.0/1
- dev-test/1.26.0/1
- dev-filippo/1.25.1/1
- dev-scarface_frazioni_1.17.0/1
- dev-stefan1/test/1.12.0
- dev-gianluca/1.23.0/4
- dev-test/1.25.1/1
- dev-test/1.23.0/1
- dev-fabiano/1.25.1/1
- dev-fabiano/1.23.0/1
- dev-scarface_digiteca/test/1.22.0/2
- dev-test/1.25.0/1
- dev-la_francesca/notiiche_cache
- dev-test/1.24.0/2
- dev-riccardo/1.24.0/1
- dev-gianluca/1.21.0/3
- dev-scarface_intranet-aria/1.21.1
- dev-test/1.21.0/3
- dev-test/1.22.1/1
- dev-marco/1.23.0/2
- dev-test/1.23.0/4
- dev-test/1.23.0/2
- dev-riccardo/1.23.0/1
- dev-marco/1.23.0/3
- dev-stefanob/1.23.0/2
- dev-daniele/1.11.2
- dev-mattia/1.23.0/2
- dev-test/1.11.1/2
- dev-mattia/1.11.1/2
- dev-stefanob/1.23.0/1
- dev-marco/1.23.0/1
- dev-la_francesca/1.22.0
- dev-test/1.22.0/2
- dev-la_francesca/1.21.0
- dev-test/1.22.0/1
- dev-la_francesca/1.20.1
- dev-test/1.21.0/2
- dev-test/1.20.1/3
- dev-gianluca/1.20.1/1
- dev-test/1.21.0/1
- dev-michelezucchini/1.20.1/2
- dev-gianluca/1.20.1/2
- dev-test/1.20.1/2
- dev-daniele/1.20.1/2
- dev-michelezucchini/1.20.1/1
- dev-elisa/1.20.0/2
- dev-dof/prova-shimmer
- dev-gianluca/1.20.0/2
- dev-test/1.20.1/1
- dev-test/1.20.0/2
- dev-riccardo/1.20.0/1
- dev-test/1.20.0/1
- dev-test/1.18.0/2
- dev-la_francesca/1.19.0
- dev-gianluca/1.19.0/2
- dev-riccardo/1.19.0/2
- dev-test/1.19.0/2
- dev-test_merge1.18.0
- dev-gianluca/1.17.1/2
- dev-la_francesca/1.19/1
- dev-test/1.19.0/1
- dev-la_francesca/1.19/0
- dev-test/1.18.0/1
- dev-elisa/1.18.0
- dev-scarface_intranet-aria/1.17.0/6
- dev-test/1.17.1/2
- dev-riccardo/1.17.1/2
- dev-dof/1.17.1/2
- dev-la_francesca/1.17.0
- dev-gianluca/1.17.0/6
- dev-test/1.17.1/1
- dev-test/1.17.0/6
- dev-francesca/1.17.0/6
- dev-test/1.12.0
- dev-test/1.8.0
- dev-gianluca/1.17.0/5
- dev-dof/1.17.0/5
- dev-test/1.17.0/5
- dev-stefan1/test/1.17.0/4
- dev-stefan
- dev-stefan_1.0.0
- dev-la_francesca/1.17.1
- dev-riccardo/1.17.0/5
- dev-test/1.17.0/4
- dev-elena/1.17.0/3
- dev-michelezucchini/1.12.1/1
- dev-michelezucchini/1.17.0/4
- dev-test/1.12.2/1
- dev-mapple-aria/1.17.0/3
- dev-test/1.17.0/3
- dev-gianluca/1.17.0/3
- dev-test/1.17.0/2
- dev-riccardo/1.17.0/3
- dev-test/1.11.1/1
- dev-dof/1.11.1/1
- dev-dof/1.11.0
- dev-stefano_1_17_0_1
- dev-mg/test/1.17.0/1
- dev-test/1.17.0/1
- dev-scarface_frazioni_1.16.0/1
- dev-gianluca/1.16.0/1
- dev-test/1.16.0/1
- dev-test/1.15.0/5
- dev-fabiot_1.15.0_4
- dev-elena/1.15.0/4
- dev-test_merge_1.15.0
- dev-test/1.15.0/4
- dev-fabiot_1.15.0
- dev-test/1.15.0/3
- dev-test/1.15.0/2
- dev-scarface_befe_1.15.0/3
- dev-la_francesca/befe
- dev-riccardo/1.15.0/2
- dev-test/1.12.1/1
- dev-mg/befe
- dev-fabiot_1.14.0
- dev-test/1.15.0/1
- dev-fabiot_fix_1.12.0
- dev-la_francesca2/befe
- dev-scarface_didattica_ft_1.12.0
- dev-mg/1.7.3
- dev-elena/1.12.0
- dev-fabiot_1.12.0
- dev-scarface_didattica_befe_1.12.0
- dev-test/1.14.0/2
- dev-melanie/1.12.0
- dev-riccardo/1.14.0/1
- dev-test/1.14.0/1
- dev-la_francesca/1.13.0
- dev-riccardo/1.13.0
- dev-test/1.13.0
- dev-mattia/GRAFICA-BI-LESS
- dev-fabiot_1.11.0
- dev-test/1.11.0
- dev-dof/GRAFICA-BI-LESS
- dev-elena/1.8.0
- dev-test/1.10.0
- dev-test/1.9.0
- dev-open20/1.7.0/1
- dev-mattia/testi
- dev-scarface
- dev-lisa_1.8.0
- dev-test/1.7.3
- dev-la_francesca/event_wizard
- dev-riccardo/1.7.0
- dev-test/bullet-count
- dev-external_facilitator
- dev-la_francesca/1.6.20/1
- dev-lisa
- dev-care_for_workers_new
- dev-test/1.6.20
- dev-test/1.6.19/2
- dev-test/1.6.19/1
- dev-la_francesca/nuova_grafica_email
- dev-test/1.6.18/2
- dev-grafica_fix
- dev-test/1.6.18/1
- dev-open20_correlazioni
- dev-POI
- dev-POI_community_fullsize
- dev-ASTER_PR-4
- dev-fix_nuova_grafica
- dev-e015
- dev-care_for_workers
- dev-cruscotto_lavoro
- dev-umbria
- dev-piattaforma_elite
- dev-rete_comuni
- dev-asp_energia
- dev-arca/1.6.17/1
- dev-POI_TEST/1.6.18/1
- dev-test/1.6.17/4
- dev-test/1.6.17/3
- dev-grafica
- dev-MicheleA
- dev-test/1.6.17/2
- dev-AE99
- dev-nuova_dashboard
- dev-nuovo_widget_grafico
- dev-riccardo-public-share
- dev-melanie/1.6.17
- dev-test/1.6.17/1
- dev-la_francesca/1.6.17/1
- dev-RC-222
- dev-simonem/1.6.17/1
- dev-riccardo/1.6.17/1
- dev-test/1.6.16/1
- dev-test/1.6.15/1
- dev-la_francesca/1.6.15/1
- dev-riccardo/1.6.15/1
- dev-fabiot
- dev-DEPLOY_POI_20180921
- dev-test/1.6.12/3
- dev-cinzia
- dev-riccardo/1.6.12/3
- dev-enrica/1.6.12
- dev-smart/cms
- dev-riccardo/1.6.12/2
- dev-m.bonora/cms
- dev-test/1.6.12/2
- dev-e.manfredini/cms
- dev-simone/1.6.12/fix-report-dependency
- dev-DEPLOY_POI_20180702
- dev-DEPLOY_OPEN2_05072018
- dev-la_francesca/1.6.12/1
- dev-test/1.6.12/1
- dev-riccardo/1.6.11/1
- dev-g.baraldi/cms
- dev-riccardo-newCard/1.6.10/1
- dev-test/1.6.11/1
- dev-test/1.6.10/4
- dev-la_francesca/1.6.10/4
- dev-simone/1.6.10/4
- dev-luca_l/1.6.10/4
- dev-la_francesca/1.6.10/1
- dev-riccardo/1.6.10/4
- dev-luca_l/1.6.10/3
- dev-riccardo/1.6.10/1
- dev-test/1.6.10/3
- dev-simone/1.6.10/3
- dev-simone/1.6.10/1
- dev-test/1.6.10/2
- dev-smart/search
- dev-g.baraldi/search
- dev-test/1.6.10/1
- dev-m.bonora/search
- dev-la_francesca/1.6.8/5
- dev-riccardo/1.6.9/1
- dev-simone/1.6.8/change-request-4
- dev-la_francesca/1.6.8/6
- dev-test/1.6.8/6
- dev-test/1.6.8/5
- dev-test/1.6.8/4
- dev-la_francesca/1.6.8/4
- dev-test/1.6.8/3
- dev-test/1.6.8/2
- dev-giuseppe_1.6.8/3
- dev-riccardo-CR4/1.6.8/1
- dev-test/1.6.8/1
- dev-riccardo-CHANGE-REQUEST-4
- dev-simone/1.6.6/changerequest-4
- dev-la_francesca/1.6.5/1
- dev-test/1.6.7/1
- dev-test/1.6.5/1
- dev-la_francesca/1.6.4/1
- dev-giuseppe_1.6.2/2
- dev-test/1.6.2/2
- dev-test/1.6.2/1
- dev-la_francesca/1.6.2/1
- dev-test/1.6.1/1
- dev-giuseppe_1.6.1/2
- dev-riccardo/1.6.1/1
- dev-enrica/1.6/22
- dev-test/1.6/22
- dev-la_francesca_1.6/22
- dev-enrica-widgetGrafici/1.6/22
- dev-test/demo
- dev-test/1.6/21
- dev-pivanti
- dev-test/1.6/20
- dev-test/1.6/19
- dev-enrica/amos-layout
- dev-test/1.6/18
- dev-test/1.6/17
- dev-test/1.6/16
- dev-test/1.6/15
- dev-test/1.6/14
- dev-test/1.6/13
- dev-test/1.6/12
- dev-enrica/1.6/12
- dev-test/1.6/11
- dev-test/1.6/10
- dev-test/1.6/9
- dev-test/1.6/8
- dev-test/1.6/7
- dev-test/1.6/6
- dev-test/1.6/5
- dev-test/1.6/4
- dev-test/1.6/3
- dev-michelez.1.6
- dev-test/1.6/2
- dev-test/1.6/1
- dev-simone_1.6
- dev-test/1.5.11/1
- dev-giuseppe_1.5.12
- dev-pivanti_1.5.11
- dev-rudy_1.5.9
- dev-import_rudy
- dev-rudy_1.5.5
- dev-enrica_1.5.8
- dev-enrica_1.5.6
- dev-enrico_1.5.5
- dev-simone_1.5.5
- dev-enrica_1.5.4
README
News management.
Installation
You need to require this package and enable the module in your configuration.
add to composer requirements in composer.json
"elitedivision/amos-news": "dev-master",
or run command bash:
composer require "elitedivision/amos-news:dev-master"
Enable the News modules in modules-amos.php, add :
'news' => [
'class' => 'elitedivision\amos\news\AmosNews',
],
add news migrations to console modules (console/config/migrations-amos.php):
'@vendor/elitedivision/amos-news/src/migrations'
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:
'news' => [
'class' => 'elitedivision\amos\news\AmosNews',
'params' => [
'site_publish_enabled' => true,
'site_featured_enabled' => true
]
],
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:
'report' => [
'class' => 'elitedivision\amos\report\AmosReport',
'modelsEnabled' => [
.
.
'elitedivision\amos\news\models\News', //line to add
.
.
]
],
for comments:
'comments' => [
'class' => 'elitedivision\amos\comments\AmosComments',
'modelsEnabled' => [
.
.
'elitedivision\amos\news\models\News', //line to add
.
.
],
],
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:
'news' => [
'class' => 'elitedivision\amos\news\AmosNews',
'validatePublicationDate' => false, //changed property (default was true)
],
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:
'news' => [
'class' => 'elitedivision\amos\news\AmosNews',
'filterCategoriesByRole' => true
]
hidePubblicationDate - boolean, default = false
The news created are always visible, hide fields publication_from, publication_tonewsRequiredFields - 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:'news' => [ 'class' => 'elitedivision\amos\news\AmosNews', 'newsRequiredFields' => ['news_categorie_id', 'status'] ],
defaultCategory - integer The ID of the default category pre-selected for the new News
'news' => [ 'class' => 'elitedivision\amos\news\AmosNews', 'defaultCategory' => 3 ],
autoUpdatePublicationDate - boolean, default = false
This set the auto update of the publication date on the save if the news is published'news' => [ 'class' => 'elitedivision\amos\news\AmosNews', 'autoUpdatePublicationDate' => true ],
$enableCategoriesForCommunity - boolean, default = false
- $showAllCategoriesForCommunity - boolean, default = false
- $whiteListRolesCategories - default = ['ADMIN', 'BASIC_USER']