Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you should be able to have multiple <code>CollapsiblePanel</code>s per <code>ContentBoxMedia</code>, your relationships are set up the wrong way around -- the <code>ForeignKey</code> should be in <code>CollapsiblePanel</code> instead.</p> <p>However it seems that what you are after is for automated handling of your <code>CollapsiblePanel</code> "inline"? This will not work out of the box, because FeinCMS handles all content types as inlines themselves (so <code>ContentBoxMedia</code> objects are already handled as inlines of the parent object), and Django does not support <a href="http://code.djangoproject.com/ticket/9025" rel="nofollow"><em>nested</em> inlines</a>.</p> <p>I suspect any hack to provide such functionality would be horrendously complex; you could try to render your own formset in the <code>ContentBoxMedia</code> template, but you would need to hack the <code>ItemEditor.change_view</code> method to handle the data, which would not work easily. Alternatively you could avoid this by adopting an Ajax approach, but this would only work within <em>saved</em> <code>ContentBoxMedia</code> objects and not new ones.</p> <p>Alternatively you could try to register <code>ContentBoxMedia</code> with admin directly so that you could use <code>CollapsiblePanel</code> inlines, but this would require leaving the main FeinCMS parent admin page to edit these separately. If you wanted to explore this, you would need to use <a href="http://www.feinheit.ch/media/labs/feincms/contenttypes.html#obtaining-a-concrete-content-type-model" rel="nofollow"><code>Base.content_type_for</code></a> and register the resultant model with your <code>AdminSite</code> (and of course explicitly register an inline).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload