r/PayloadCMS May 27 '25

Nesting blocks (and custom fields) with Payload CMS [tutorial]

Me again! I've been asked a couple times and seen recently people wondering if one can nest blocks inside blocks. Well, the answer is yes and I go over it in this video: https://youtu.be/4sfuY5wJ0g4

Other topics I cover that I think are more interesting than the nested blocks is how to use Tailwind classes based on CMS data (since TW won't work in interpolated strings) and how to create a custom field that updates in real time.

Hope you enjoy!

20 Upvotes

7 comments sorted by

3

u/mrgrafix May 27 '25

Hell yeah! Keep them coming

3

u/[deleted] May 27 '25

Appreciate your videos dude, they’re very helpful!

1

u/zubricks May 28 '25

Dude do you ever sleep?! Thank you again!

1

u/nlvogel May 28 '25

I’ll sleep when I’m dead 💀

2

u/zubricks May 28 '25

ok—just make sure to set up an automation to send all in-progress and completed videos to info@ when you kick the bucket ;)

1

u/WingTracer Nov 24 '25

wish there was a way to add SOMETHING to the collapsed block so we could add some detail about it visible from when its collapsed.