Blueprint for hero images

Hello

To display hero images per page, I created a simple blueprint. You select an image from the media gallery and specify the page ID of a page (Static Page or Page). This links the choosen image to the desired page.

This isn’t very efficient when rendering. I’m using a loop that retrieves the correct ID for the image on the current page. A second, inner loop allows for a hero image for a submenu.

Does anyone have an idea for a more efficient solution?

The website uses the “Static Pages” plugin.

Thanks!

Hey @martin.schaible

It should be efficient since it’s file based. However, if I was building this as a new site I would use Tailor. It is much more flexible and can be more efficient depending on the complexity. The demo theme comes with a starter blueprint for this.

I guess I would ask, what is inefficient about it?

I thought that nested loops weren’t efficient. But it works perfectly and is super fast.