Multi-select ChooserPanel

545 views
Skip to first unread message

Marcus Amargi

unread,
Aug 25, 2015, 12:14:27 PM8/25/15
to Wagtail support
I am creating a snippet in which I would like for users to relate multiple other snippets to. Similar to the InlinePanel, I would like users to add and order multiple pre-existing snippet objects. InlinePanel seems to be only for creating new objects inline. Is there such a way now to do inline chooser panels? Thanks.

Matthew Westcott

unread,
Aug 25, 2015, 12:22:46 PM8/25/15
to wag...@googlegroups.com
Hi Marcus,
The conventional way to do this is to create an InlinePanel consisting of just a snippet chooser panel - see http://docs.wagtail.io/en/v1.0/topics/snippets.html#binding-pages-to-snippets . In this example, the 'Advert' snippets are defined outside of the page content, and the 'BookPageAdvertPlacement' model just acts as the link between the page and the snippets.

Cheers,
- Matt

Marcus Amargi

unread,
Aug 25, 2015, 1:01:26 PM8/25/15
to Wagtail support
Great! Thanks very much for the documentation link.
Reply all
Reply to author
Forward
0 new messages