Skip to content

Conversation

@CySSoO
Copy link
Contributor

@CySSoO CySSoO commented Jan 13, 2026

Motivation

  • Allow editors to upload up to four images per Category Tabs tab and display them as a visual slider above the product grid, matching the provided mockup.
  • Reuse the existing Prettyblocks carousel assets and behavior to keep consistent UI and interactions.
  • Keep the feature optional so tabs without images are unchanged and existing slider/product logic remains intact.

Description

  • Added four fileupload fields (slider_image_1..slider_image_4) to the Category Tabs repeater in src/Service/EverblockPrettyBlocks.php so each tab can store up to four images.
  • Updated the tab template views/templates/hook/prettyblocks/prettyblock_category_tabs.tpl to collect any configured slider images and render a Bootstrap carousel (with indicators and prev/next controls) immediately before the products section when at least one image is present.
  • The new carousel uses existing prettyblocks-image-slider classes and lazy-loading attributes to integrate with current CSS/JS initializers and to ensure consistent appearance and behavior.
  • Changes are committed in two files: src/Service/EverblockPrettyBlocks.php and views/templates/hook/prettyblocks/prettyblock_category_tabs.tpl.

Testing

  • No automated tests were executed for this change in this rollout.
  • Template and PHP changes were saved and committed successfully to the local branch.
  • The carousel rendering relies on existing prettyblocks-image-slider JS/CSS initializers already present in the codebase and should work when served in a running frontend environment.

Codex Task

@CySSoO CySSoO merged commit bd0dcbc into master Jan 13, 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