#Singular Collections

7 messages · Page 1 of 1 (latest)

analog swallow
#

Am I wrong for making "Homepage" it's own collection type?
It's a bit unique in terms of the layout, it will be different from all other pages.
If there is a better way to do it, I'm definitely open for suggestions.

But even though the slug is "homepage" it shows up as plural, "Homepages".
Would there be any option to turn off plural and just have it say "Homepage" without the "s"?

wispy topazBOT
tired lark
#

Sounds like you could use Globals for this: https://payloadcms.com/docs/configuration/globals

If you do still prefer to use a collection, then you can use the labels option on your collection to specify both singular and plural labels.

labels: {
  singular: 'Homepage',
  plural: 'Homepage',
}
stable spire
#

why not use collections "Pages" just? then in "Pages" you can add select with pageType and conditionally render fields based on pageType

analog swallow
stable spire
#

yes, just 1 option

#

and make it by default