thelia-modules/TheliaLibrary — reverse-engineered prompt
Reverse engineered prompt
Build me a media library module for a Thelia shop. I want it to let the site store and manage images that can be linked to products, categories, content pages, normal pages, folders, or the library itself. For now it doesn’t need a back office screen, just a clean API with documentation available from the site OpenAPI page so another app can upload, list, sort, and fetch media.
Also add template helpers for Twig and Smarty so theme developers can easily output images without writing loops. The helpers should be able to return image data or render the HTML image markup, support responsive picture output with multiple image filters, alt text, image attributes, inline styles, wrappers, containers, placeholders, position, limit, and offset.
Please make it feel like a proper installable Thelia module with translations, services, hooks where needed, and clear examples in the README. Look up current Thelia docs online if you need to.
Want more depth? Deep Reverse