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 
<http://docs.django-cms.org/en/release-3.4.x/how_to/apphooks.html#apphooks-and-placeholder-template-tags>.
 
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

-- 
Message URL: 
https://groups.google.com/d/msg/django-cms-developers/topic-id/message-id
Unsubscribe: send a message to 
[email protected]
--- 
You received this message because you are subscribed to the Google Groups 
"django CMS developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/django-cms-developers/c22bb16c-2e79-4695-8a99-d5732187a5bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to