-
Notifications
You must be signed in to change notification settings - Fork 118
render_placeholder view.config.placeholder_detail_bottom act as Static Placeholder #452
Comments
I'm running into a similar issue. I can't see to place a placeholder on the main blog page and have it not render on the detail view of a single blog. I can only place placeholder tags in my blog template file. But if I just put the placeholder tag in the aldryn_newsblog template files, it doesn't display at all. |
Did you solved it? I have the same problem. |
Hi @dawado , I haven't solved it. I don't know if this problem is a bug of a feature.... |
Hey, There are different ways to solve this: One is to override the article detail template and add a static placeholder there. {% static_placeholder 'article_image_'|add:article.pk %} This would cause a static placeholder to be created for each article. Personally, I don't like this approach because it makes use of a technicality within the cms and as such might break in the future. The recommended approach is to create an app in your project with a model that has a one to one relationship to the article Class ArticleExtension(models.Model): Then in your template you can do something like: {% if article.extension %} Its a bit more work than the template based approach but in my opinion is cleaner and more explicit. Maybe it will helps you. Greetings Danny |
Hi @FabrizioA Do you solved this? |
Hi,
I'm using {% render_placeholder view.config.placeholder_detail_bottom %} inside article_detail.html template and I have noticed that it is act as a static placeholder, so when I select another article I see the same content added on the other article.
Is there a "placeholder" belongs to an article and that I can use as secondary content placeholder??
Thank you.
F.
The text was updated successfully, but these errors were encountered: