Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageSnippet (.s_image) #4207

Open
wants to merge 96 commits into
base: master-mysterious-egg
Choose a base branch
from

Conversation

blse-odoo
Copy link

I added a resource before_add_element_handlers that allows to add asynchronous steps to transform an element before it is added to the document

And use it to ask the user what image to add

@robodoo
Copy link

robodoo commented Mar 18, 2025

This PR targets the un-managed branch odoo-dev/odoo:master-mysterious-egg, it needs to be retargeted before it can be merged.

loco-odoo and others added 25 commits March 18, 2025 17:42
This uses a custom history mutation system, because modification of wrapwrap node are outside of the editable scope and not detected.
This uses a custom save system, like the old option.
TopMenuVisibility is the only header option modifying the current page header and not every header. It is not usable on every page (like a product page), doing so by checking the input node header_visible to know if the header is customisable.
The values added in the snippet comes from `addons/website/static/src/snippets/s_facebook_page/options.js` > `facebookPage` > `willStart`

Special handling to set the link based on data from the orm, has been made with the help of nby (I'm not that confident to leave such a warning by myself :p )
With this commit, the user can now change the columns
in image galleries. The columns can be changed in
the grid and the masonry layout.
@FrancoisGe FrancoisGe force-pushed the master-mysterious-egg branch from 3ee87bf to 98b990a Compare March 19, 2025 09:22
I added a resource `before_add_element_handlers` that allows to add
asynchronous steps to transform an element before it is added to the document

And use it to ask the user what image to add
@blse-odoo blse-odoo force-pushed the master-mysterious-egg-2-blse branch from 9461045 to a30c5e0 Compare March 19, 2025 09:34
@FrancoisGe FrancoisGe force-pushed the master-mysterious-egg branch from f468b7f to 80b3d5d Compare March 27, 2025 12:21
@ged-odoo ged-odoo force-pushed the master-mysterious-egg branch from 27a1402 to 8c6b756 Compare March 27, 2025 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.