Kirby Inflate Plugin

, ,

When developing sites, creating enough dummy content to test layouts, pagination, and galleries is often a repetitive, manual process.

To make this easier, I created a tiny plugin that provides an ->inflate() helper function on any Kirby collection. It allows you to programmatically increase the size of $pages, $users, $files, or $blocks to any desired amount. This makes it easy to verify how your sites layouts, grids, paginations and so on handle realistic content volumes without manual duplication.

Unless explicitly configured otherwise, the function only runs when debug = true to prevent accidental execution in production.

5 Likes

Just used this plugin in a project and it’s super helpful. Seems like a small thing but it’s incredibly powerful. I’m always trying to write defensive CSS but it’s a pain in the ass having to duplicate pages for that. Just add ->inflate(50), done :exploding_head:

Thank you!

1 Like