Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upWhat should be in the main page of a djangocms-blog blog? #541
Comments
Based on my experience setting up a blog: The default setup creates a root page "Home" and page "Blog" underneath. The apphook is on the "Blog" page. You can, if you so wish, modify the default behavior and have the blog page be your root (the BLOG_AUTO_SETUP and friends at https://djangocms-blog.readthedocs.io/en/latest/settings.html). You can also have the apphook page at root, and then it will be post listing by default. I don't think either way is right or wrong but depends on what you want. I ended up using the default setup and having a "latest blog posts" plugin on my main page. As for the templates, the default blog template hijacks the content block on the apphook page. If your parent template doesn't have a content block, or you want more flexibility, you need to customize either the blog template or your parent template. Sorry, I'm not sure why Hope this helps! |
@jasujm thanks for the very comprehensive answer, better than I could have done myself |
Sorry but this is not helping. The setup is very confusing. I got to the point where I made the page, added the app hook, created a blog post but then page displays absolutely nothing. I can add various blog plugins to the placeholder in the template, but that doesn't seem right as every single page shows the same content (click "see more" on post, it changes url but content stays same). Here's my default and only cms template:
Config is
What am I missing? |
The |
I have added in #631 an improved setup documentation to address both the template changes and the steps required to have the blog on the home page |
Hello,
I installed djangocms-blog (github version with fix by jasujm, as per "migration error" issue), but I am having a lot of trouble understanding how to configure this app properly. (Django version = 2.2.7, django-cms version 3.7.1)
The blog page was created and assigned to the blog app, but it used the first template on my templates list, which does not have any blog functionality. So I have a blog page that doesn't do display anything. I can add a "display last posts" plugin, but - is that the right way? I see there is a template in the djangocms_blog/template/ folder. Should I addapt this one?
Well, I tried that :-) I wanted to include the menu of the rest of the site, but then show_menu fails, saying it isn't a Blog application query. So clearly I am missing something.
Any hints as well as pointers to appropriate documentation would be greatly appreciated!