-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
Inner content snippet cannot be placed #8771
Comments
For anyone else encountering this, the completely undocumented piece of code that enables inner content snippets to be actually placed with the editor (place this inside <template id="s_custom_snippet_options" inherit_id="website.snippet_options" name="Custom snippet options">
<xpath expr="//*[@t-set='so_content_addition_selector']" position="inside">, .s_flipping_card</xpath>
</template> The special so_content_addition class that enumerates every inner content snippet and you have to explicitly add yours into this list. It'd be really nice to mention this in the documentation as what's currently online is faulty. |
Oh, God, you really saved me @Silur ! I thought I would go insane in solving this. Tried to post the same question to the forum: https://www.odoo.com/forum/help-1/custom-inline-content-blocks-odoo-16-249894. Thanks a lot! |
Hi @Silur |
Hi @CVDE-odoo, I think this if for you ;) |
@AntoineVDV Thanks, it's noted. I will have a look into this and include it for the next documentation update ! |
Impacted versions: 17.0
Steps to reproduce:
Current behavior:
Snippet cannot be dragged, is disabled and when inspected with devtools it has the title "No location to drop in" - even though
data-drop-in
is filled.Wrapping the snippet into
<section></section>
works as expectedExpected behavior:
Snippet should be draggable into .conent and nav elements.
The text was updated successfully, but these errors were encountered: