Skip to content

Conversation

@CySSoO
Copy link
Contributor

@CySSoO CySSoO commented Jan 16, 2026

Motivation

  • Allow editors to upload a background image per item in the PrettyBlocks repeater for Everblock so repeaters can use an image background in addition to color.

Description

  • Add a background_image repeater field (type: 'fileupload') to the Everblock PrettyBlocks block configuration in src/Service/EverblockPrettyBlocks.php.
  • Render the uploaded image in the repeater template by injecting background-image:url(...) with background-size: cover; background-position: center; background-repeat: no-repeat; in views/templates/hook/prettyblocks/prettyblock_everblock.tpl.

Testing

  • No automated tests were executed for this change.

Codex Task

@CySSoO CySSoO merged commit 1ff8ebf into master Jan 16, 2026
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants