You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I love the "Advanced settings" fields in the blocks in crx, but when I try to subclass BaseBlock in my own blocks I see the advanced settings fields in the editor, they're saved correctly, but does not appear anywhere on my object instance and is not available in my templates. What am I doing wrong?
from coderedcms.blocks import BaseBlock
from wagtail.core.blocks import BooleanBlock
from wagtail.snippets.blocks import SnippetChooserBlock
class FamousQuoteBlock(BaseBlock):
"""This will insert a famous quote block"""
quote = SnippetChooserBlock("quotes.Quote", required=False)
random_quote = BooleanBlock(required=False)
class Meta:
icon = "user"
form_classname = "quote-block struct-block"
template = "quotes/blocks/quote_block.html"
The text was updated successfully, but these errors were encountered:
I love the "Advanced settings" fields in the blocks in crx, but when I try to subclass BaseBlock in my own blocks I see the advanced settings fields in the editor, they're saved correctly, but does not appear anywhere on my object instance and is not available in my templates. What am I doing wrong?
The text was updated successfully, but these errors were encountered: