makes sure the value titels are shown not just the ID's
This commit is contained in:
parent
6836f05d06
commit
c8455ed31f
@ -2,9 +2,9 @@ import { CollectionConfig } from 'payload/types';
|
|||||||
|
|
||||||
const Dispatches: CollectionConfig = {
|
const Dispatches: CollectionConfig = {
|
||||||
slug: 'dispatches',
|
slug: 'dispatches',
|
||||||
// admin: {
|
admin: {
|
||||||
// useAsTitle: 'email',
|
useAsTitle: 'dispatchesCode',
|
||||||
// },
|
},
|
||||||
access: {
|
access: {
|
||||||
read: () => true,
|
read: () => true,
|
||||||
},
|
},
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
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;
|
|
@ -2,9 +2,9 @@ import { CollectionConfig } from 'payload/types';
|
|||||||
|
|
||||||
const Makers: CollectionConfig = {
|
const Makers: CollectionConfig = {
|
||||||
slug: 'makers',
|
slug: 'makers',
|
||||||
// admin: {
|
admin: {
|
||||||
// useAsTitle: 'email',
|
useAsTitle: 'name',
|
||||||
// },
|
},
|
||||||
access: {
|
access: {
|
||||||
read: () => true,
|
read: () => true,
|
||||||
},
|
},
|
||||||
|
@ -2,9 +2,9 @@ import { CollectionConfig } from 'payload/types';
|
|||||||
|
|
||||||
const Products: CollectionConfig = {
|
const Products: CollectionConfig = {
|
||||||
slug: 'products',
|
slug: 'products',
|
||||||
// admin: {
|
admin: {
|
||||||
// useAsTitle: 'email',
|
useAsTitle: 'productTitle',
|
||||||
// },
|
},
|
||||||
access: {
|
access: {
|
||||||
read: () => true,
|
read: () => true,
|
||||||
},
|
},
|
||||||
|
@ -2,9 +2,9 @@ import { CollectionConfig } from 'payload/types';
|
|||||||
|
|
||||||
const Retailers: CollectionConfig = {
|
const Retailers: CollectionConfig = {
|
||||||
slug: 'retailers',
|
slug: 'retailers',
|
||||||
// admin: {
|
admin: {
|
||||||
// useAsTitle: 'email',
|
useAsTitle: 'name',
|
||||||
// },
|
},
|
||||||
access: {
|
access: {
|
||||||
read: () => true,
|
read: () => true,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user