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!