open20 /amos-partnership-profiles
此包的最新版本(1.4.0)没有可用的许可信息。
合作伙伴简介 - 插件
1.4.0
2023-05-23 11:27 UTC
Requires
- php: >=5.4.0
- open20/amos-admin: ^2.0
- open20/amos-attachments: ^1.1.11
- open20/amos-community: ^1.5.19
- open20/amos-comuni: ^1.2.8
- open20/amos-core: ^1.15.0
- open20/amos-dashboard: ^1.8.4
This package is auto-updated.
Last update: 2024-09-23 14:34:44 UTC
README
创建合作伙伴简介的插件。
安装
1. 安装此扩展的首选方式是通过 composer。
运行以下命令之一
composer require open20/amos-partnership-profiles
或将以下行
"open20/amos-partnership-profiles": "~1.0"
添加到您的 composer.json
文件的 require 部分。
2. 在后台主配置中添加模块
<?php 'modules' => [ 'partnershipprofiles' => [ 'class' => 'open20\amos\partnershipprofiles\Module' ], ],
3. 应用迁移
php yii migrate/up --migrationPath=@vendor/open20/amos-partnership-profiles/src/migrations
或在控制台中添加以下行到您的迁移配置
<?php return [ '@vendor/open20/amos-partnership-profiles/src/migrations', ];
4. 在标签模块中添加配置。在 backend/config/modules-amos.php 中添加如下配置
<?php if (isset($modules['tag'])) { ... if (isset($modules['partnershipprofiles'])) { $modules['tag']['modelsEnabled'][] = 'open20\amos\partnershipprofiles\models\PartnershipProfiles'; $modules['tag']['modelsEnabled'][] = 'open20\amos\partnershipprofiles\models\ExpressionsOfInterest'; } ... }
然后进入标签管理器,为该模型配置所需的树角色。
5. 将合作伙伴简介模型添加到报告模块
<?php 'modules' => [ 'report' => [ 'class' => 'open20\amos\report\AmosReport', 'modelsEnabled' => [ 'open20\amos\partnershipprofiles\models\PartnershipProfiles', ] ], ],
6. 配置合作伙伴简介模型的 cwh
进入 cwh 配置并设置状态字段和默认状态。cwh 配置在以下 URL:/cwh/configuration/wizard
7. 归档提案的操作
php yii /partnershipprofiles/partnership-profiles/archive-partnership-profiles
可配置字段
以下为可配置字段列表,AmosPartnershipProfiles 模块的属性。如果某些属性的默认值不适合您的项目,您可以在模块-amos中配置它,例如
'fieldsConfigurations' => [ 'required' => [ 'extended_description', 'expected_contribution', 'partnership_profile_date', 'expiration_in_months', ], 'tabs' => [ 'tab-more-information' => false, 'tab-attachments' => true ], 'fields' => [ //tab general 'title' => true, 'short_description' => false, 'extended_description' => true, 'advantages_innovative_aspects' => false, 'expected_contribution' => true, 'partnership_profile_date' => true, 'expiration_in_months' => false, 'attrPartnershipProfilesTypesMm' => false, 'other_prospect_desired_collab' => false, 'contact_person' => true, ], ]
如果您只想为特定社区修改这些字段,您可以在模块-amos中添加它
'fieldsCommunityConfigurations' => [ 'communityId-5' => [ 'required' => [ 'extended_description', 'expected_contribution', 'partnership_profile_date', 'expiration_in_months', ], 'tabs' => [ 'tab-more-information' => false, 'tab-attachments' => true ], 'fields' => [ //tab general 'title' => true, 'short_description' => false, 'extended_description' => true, 'advantages_innovative_aspects' => false, 'expected_contribution' => true, 'partnership_profile_date' => true, 'expiration_in_months' => false, 'attrPartnershipProfilesTypesMm' => false, 'other_prospect_desired_collab' => false, 'contact_person' => true, ], ] ],