1.2.3 • Published 11 months ago

@art-design-digital/payload-plugin-teammembers v1.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Team members plugin for PayloadCMS

This plugin gives you the ability to create and manage team members in the backend of a PayloadCMS for your business, company, team, organization, etc.

To use the plugin it is better to have

  • An understanding of the basic Payload concepts
  • And some JavaScript/Typescript experience

Background

The plugin installs two new collections to your PayloadCMS: TeamMembers and Departments. Every TeamMember is related to one Department.

How to install the plugin

To install te plugin first download it from npm via

npm install @art-design-digital/payload-plugin-teammembers

or

yarn add @art-design-digital/payload-plugin-teammembers

To use the plugin simple add it to your payload.config.ts

export const config = buildConfig({
  plugins: [
    teamMemberPlugin(
      {
        enabled: true,
        localized: true,
        uploadsCollection: 'media',
        adminGroup: {
          en: 'Company data',
          de: 'Firmendaten',
        },
      }
    )
  ]
});

PluginOption Properties

There are some properties you can use to modify the behavior of the plugin.

NameDescriptionTypeDefault
enabledSwitches the whole plugin on or offbooleanfalse
localizedDecides if the plugin has localization features or not. This only effects the field position because all other data is language independent.*booleanfalse
uploadsCollectionTell the plugin which collection shall be used for uploading a photo for a team member.string'media'
adminGroupPut the collections that come with this plugin into a custom existing or new groups in your admin UI.string || {[key: string]: string}undefined

* Please be sure the have the localization feature enabled in your payload instance. The plugin won't break but there is no sense in enabling a localized plugin with no localization.

Available team member fields

The fields that can be used inside a team member are

FieldUsageType
nameThe name of your team member.text
positionPosition of the member. E.g. Key account manager.text
departmentWhich department the members belongs to.relationship
emailThe e-mail address of the member.email
phoneThe phone or mobile number. No specific format. It is on you to format is when fetching via API.text
photoA photo of the team member.upload

Available department fields

The fields that can be used inside a department are

FieldUsageType
nameThe name of your department.text

Language support

The plugin supports different languages when you use it in your PayloadCMS AdminUI. Please notice that all translations are done by machine from german as the starting point. Please contact us if there are any mistakes in a translation.

Supported languages at this point are:

LanguageCode
Englishen
Germande
Frenchfr
Spanishes
Portuguesept
Italianit
Dutchnl
Russianru
Japaneseja
Chinesezh
Polishpl
Swedishsv
Czechcs
Turkishtr

Questions

Please contact art&design digital with any questions about using this plugin.

1.2.3

11 months ago

1.2.2

1 year ago

1.2.0

1 year ago

1.2.1

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.22

1 year ago

0.0.21

1 year ago

0.0.11

1 year ago