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
How to name/ refer to footnotes in a block
In models.py I can generate footnotes as expected. Yet, if I use the same block it doesn't render the note. That is, I create and populates the notes in Admin, in the template they appear with the Admin with system's ref, and the footnotes section is empty - {% include "wagtail_footnotes/includes/footnotes.html" %}.
class ColumnBlock(blocks.StreamBlock):
paragraph = blocks.wagtail_footnotes.blocks.RichTextBlockWithFootnotes(editor='full', label='Paragraphe')
# error: 'wagtail.core.blocks' has no attribute 'wagtail_footnotes'
paragraph1 = blocks.RichTextBlock(editor='full', label='Paragraphe') #full' is defined in WAGTAILADMIN_RICH_TEXT_EDITORS/base.py,
paragraph2 = blocks.RichTextBlock(features=["bold", "italic", "link", "footnotes"], required=False, label='Paragraphe2')
paragraph3 = RichTextBlockWithFootnotes(features=["bold", "italic", "footnotes"], required=False, label='Paragraphe Notes1')
#Paragraph1-3 generate footnotes in the Admin, but don't render them in the template.
...
The text was updated successfully, but these errors were encountered:
Hi @DBonbon. I see the reference to blocks.wagtail_footnotes.blocks.RichTextBlockWithFootnotes. This should be wagtail_footnotes.blocks.RichTextBlockWithFootnotes, and you will need to have imported wagtail_footnotes.
I am unclear about what else you are describing, but I hope the change above is enough to help you resolve this. If you have further issues after this, please update the ticket.
How to name/ refer to footnotes in a block
In models.py I can generate footnotes as expected. Yet, if I use the same block it doesn't render the note. That is, I create and populates the notes in Admin, in the template they appear with the Admin with system's ref, and the footnotes section is empty - {% include "wagtail_footnotes/includes/footnotes.html" %}.
this above works, but the below doesn't:
The text was updated successfully, but these errors were encountered: