arter / amos-partnership-profiles
本软件包最新版本(1.3.0)没有提供许可信息。
合作伙伴简介 - 插件
1.3.0
2024-04-02 08:29 UTC
Requires
- php: >=5.4.0
- arter/amos-admin: ^2.0
- arter/amos-attachments: ^1.1.11
- arter/amos-community: ^1.5.19
- arter/amos-comuni: ^1.2.8
- arter/amos-core: ^1.9.60
- arter/amos-dashboard: ^1.8.4
This package is auto-updated.
Last update: 2024-09-07 10:36:25 UTC
README
制作合作伙伴简介的插件。
安装
1. 安装此扩展的首选方式是通过 composer。
可以运行
composer require arter/amos-partnership-profiles
或者将以下行添加到您的 composer.json
文件的 require 部分。
"arter/amos-partnership-profiles": "~1.0"
2. 将模块添加到您的后端主配置中
<?php
'modules' => [
'partnershipprofiles' => [
'class' => 'arter\amos\partnershipprofiles\Module'
],
],
3. 应用迁移
php yii migrate/up --migrationPath=@vendor/arter/amos-partnership-profiles/src/migrations
或者在控制台中添加以下行到您的迁移配置
<?php
return [
'@vendor/arter/amos-partnership-profiles/src/migrations',
];
4. 将配置添加到标签模块。在 backend/config/modules-amos.php 中添加如下配置
<?php
if (isset($modules['tag'])) {
...
if (isset($modules['partnershipprofiles'])) {
$modules['tag']['modelsEnabled'][] = 'arter\amos\partnershipprofiles\models\PartnershipProfiles';
$modules['tag']['modelsEnabled'][] = 'arter\amos\partnershipprofiles\models\ExpressionsOfInterest';
}
...
}
然后进入标签管理器,并为此模型配置所需的树角色。
5. 将合作伙伴简介模型添加到报告模块
<?php
'modules' => [
'report' => [
'class' => 'arter\amos\report\AmosReport',
'modelsEnabled' => [
'arter\amos\partnershipprofiles\models\PartnershipProfiles',
]
],
],
6. 配置合作伙伴简介模型的 cwh
进入 cwh 配置,设置状态字段和默认状态。cwh 配置在以下网址:/cwh/configuration/wizard
7. 归档提案的操作
php yii /partnershipprofiles/partnership-profiles-console/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,
],
]
],