Closed aacimov closed 6 months ago
@aacimov Any idea if this also happens without the or
keyword?
It does. Forgot to mention.
Hey @fsbraun any updates on this one? Not a crucial issue but kind of a DRY principle interruption hehe.
@aacimov I have been able to verify that the issue comes from interaction with djangocms-versioining. I keep on investigating.
Root cause identified:
render_obj_placeholder
in the ContentRenderer
. render_obj_placeholder
method checks for PageContent
objects and delegates to render_page_placeholder
. render_page_placeholder
implements the inherit
functionality but is never called when djangocms-versioning is active
Description
I have a placeholder named "Header image" called this way:
The point is to inherit a placeholder which has an Image plugin (from parent page on child pages). If there is no plugin added in "Header image" placeholder on the parent page, show a default header image defined in my include template. Parent page has an Image plugin and it should be shown on a child page but it does not.
Both templates (on parent and child) are the same (in my case
content.html
template).Steps to reproduce
placeholder "Some name" inherit or
) as described at the beginningExpected behaviour
A child page / subpage should inherit the parent page placeholder.
Actual behaviour
Child page / subpage does not inherit the placeholder but rather shows the included default code chunk (in my case).
As extra info I can add that the parent page is not a homepage, nor has any AppHooks attached - just a regular page. Child page is the first child. I have an example with the same example but with multiple child pages and their subpages (3 levels) - same behavior.
Additional information (CMS/Python/Django versions)
Do you want to help fix this issue?