Nested InlinePanel
See original GitHub issueFirst of all thank you for this wonderful software. I struggled alot to add related_links InlinePanel into Another Section InlinePanel but it gives attribute error of HomePageAnotherSection has no attribute related_links PLEASE HELP. Example Code:
class HomePageAnotherSectionRelatedLink(Orderable, RelatedLink):
page = ParentalKey('demo.HomePage', related_name='related_links')
class AnotherSection(LinkFields):
intro = models.CharField(max_length=200, blank=False)
panel =[
InlinePanel('related_links', label="Related Links")
]
Issue Analytics
- State:
- Created 8 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Nested categories/InlinePanel(s) in wagtail - Stack Overflow
I struggle to implement something like "nested categories": ... It seems nested InlinePanel s are the problem?
Read more >Two levels of Inline Panels with Model Clusters - Google Groups
I'm trying to implement a portfolio index page, where I can add portfolio items (using an inline panel so I can add these...
Read more >Panel types — Wagtail Documentation 4.1.1 documentation
Panel types¶. Built-in Fields and Choosers¶. Django's field types are automatically recognised and provided with an appropriate widget for input.
Read more >Wagtail Tip #1: How to replace ParentalManyToManyField ...
... I will talk about How to replace `ParentalManyToManyField` using Wagtail InlinePanel. ... What if you want to do nested Category?
Read more >Content Paths - Wagtail Localize
Inline child objects are the instances within an inline panel. ... If the ListBlock is nested in a StructBlock , StreamBlock or a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @gasman
I haven’t heard this mentioned in a long time, but a problem I’ve bumped in to on a project that reminded me that we can’t nest inline panels within inline panels (we got around it by defining lots of different models, which worked but was a little clumsy)
Do you know if there’s been any more thought on how nested inline panels may be possible?
I have been doing some digging on this as it’s something I’d really love to be able to do. It seems to me that for the most part this limitation is imposed by django-modelcluster. For that reason I have created an issue on that repository: https://github.com/wagtail/django-modelcluster/issues/105