first commit
This commit is contained in:
17
src/collections/Examples.ts
Normal file
17
src/collections/Examples.ts
Normal file
@ -0,0 +1,17 @@
|
||||
import { CollectionConfig } from 'payload/types';
|
||||
|
||||
// Example Collection - For reference only, this must be added to payload.config.ts to be used.
|
||||
const Examples: CollectionConfig = {
|
||||
slug: 'examples',
|
||||
admin: {
|
||||
useAsTitle: 'someField',
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
name: 'someField',
|
||||
type: 'text',
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
export default Examples;
|
||||
Reference in New Issue
Block a user