DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Hatim Makki Hoho
Hatim Makki Hoho

Posted on

HTML inside a MultiFieldPanel

How to add a custom html just next to a FieldPanel, or inside a MultiFieldPanel?

the goal is to show a link next to a field in the wagtail admin.

example code

MultiFieldPanel(
            [

         FieldPanel('related_category',widget=Select2Widget),
         HTMLPanel('<a href="...">...</a>')
            ],
            heading="CATEGORY/SUB-CATEGORY",
            classname="collapsible collapsed"
        ),
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Super Useful CSS Resources

>> Check out this classic DEV post <<