Hi all,
I'm working on an upgrade to django-cms 3 (eventually up to the latest stable version, for now 3.0.18) and am running into an issue with apphooks.
Previously our site has used
{% placeholder 'foo' inherit %} on the root of sub-trees of pages that may include apphooked pages. These apphooked pages were themselves using templates that referred to this placeholder and were therefore able to inherit plugins from the root. (The plugins in question relate to a special custom menu app.)
Now, however, it seems that
this will not work. Indeed, when I try to visit one of these hooked pages, I get this error (sanitized for specifics):
PlaceholderNotFound at <url>
"<placeholder_name>" placeholder not found in an apphook application. Please use a static placeholder instead.The solution to this would seem to be to turn the placeholder into a static placeholder—which means creating a new template for each page that previously served as the root of a sub-tree of pages that inherited placeholder content. Is that right?
Creating a whole battery of new ad hoc templates seems like a pretty labor-intensive and inelegant solution to this problem. I'm wondering whether anyone else has encountered this issue with apphook templates and arrived at some tidier way to fix it.
Best,
Neil