Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Can i add tabs to a collection without changing the data structure

default discord avatar
baotaoh11 months ago
5

i already have prod data and want to move some items to separate tab.

  • discord user avatar
    tylandavis
    11 months ago

    Yes you can. Just don't add a

    name

    value to the tabs.

  • default discord avatar
    baotaoh11 months ago

    Thank!

  • default discord avatar
    aaronksaunders11 months ago

    Curious how you figured that out !!

  • discord user avatar
    tylandavis
    11 months ago

    Adding a

    name

    value will group the fields within the tab, same as a

    group

    ,

    collapsible

    , etc. But if you don't give it a name, the fields inside stay at the top layer in the data structure.

  • default discord avatar
    aaronksaunders11 months ago

    Hmm… now I have to decide if it is worth the migration issues to clean up my data and rip out the name field on my tabs!!

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.