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.

Is it possible to make a staff grid in payloadCMS?

default discord avatar
chrinsieboylast year
3

I want to make a grid with images filled with staffmembers, so i can click on the images to edit information about them.


(see images how it would look like)



I am on payload version

2.0.9
  • discord user avatar
    seanzubrickas
    last year

    Hey

    @352799514442072065

    you can absolutely do that!



    Off the top of my head as I'm working on a project myself, you could treat these like we setup the

    ArchiveBlock

    in our ecommerce template



    https://github.com/payloadcms/payload/tree/main/templates/ecommerce

    So you'd make an StaffGrid component - that has a relationship to the items in your Medewerkers collection



    you'd be able to make this work for other collections if you wanted so it's more extensible, but you'd then be able to selection to populate your Medewerkers and it'd show up in a grid on the frontend



    I'd poke around that template + component and that should get you headed in the right direction

  • default discord avatar
    chrinsieboylast year

    Alright, thx!

  • discord user avatar
    seanzubrickas
    last year

    Not a problem! We're around if you need anything else.

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.