-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blog content is missing. #524
Comments
@AtulCIS djangocms-blog primary content editing is using django CMS plugins via frontend editor. |
Hey @yakky can you tell me exactly where in the Django CMS config this will be found in the CMS frontend editor. I don't see any clue in there and I have exactly the same problem. I just double checked after reading a bit more about Edit: Ive been doing some more digging and it seems lime my settings file is completely different to the one in this repository. For example for the line relating to the
however in the remainder of the code I have no further reference to BLOG_USE_PLACEHOLDER. In fact the only reference I have to PLACEHOLDER is in references to For example in my views.py file by grepping for 'get_setting' then 'PLACEHOLDER' I see the following:
I ran my install via pip. From init.py I see Im running :
and yet if I examine the value of the context returned by
use_placeholder changes appropriately from True to False as I set it in my project settings file. |
@pau1a In case you want to use django CMS plugins you don't have to set anything, after creating the blog post from the admin (or from the django CMS toolbar), you can just visit the blog post page (example: http://localhost:8000/blog/my-post/) as admin in edit mode and add django CMS plugin. For a primer on django CMS see its editor documentation http://docs.django-cms.org/en/latest/user/index.html |
Hey @yakky thanks for your reply. Ive been working through the operation of the blog application. Hope to be able to understand this soon but I certainly dont get any post content when I visit the blog post page. The div with the contents/abstract is empty. Also you say "as admin in edit mode and add django CMS plugin". I dont see any blog plugins available apart from the following: Archive Ive also tried adding new bootstrap plugins to create a nice div to drop a "cms blog" plugin into but that doesnt change the problem. I'll keep digging and learning. Thanks for your support and your work. |
Those are the plugins provided by djangocms-blog package, but you will want to install django cms core plugins (like djangocms-text-ckeditor, djangocms-picture etc) to add content to blog posts |
Hey @yakky thanks for the advice. I have all the necessary dependent stuff installed and I could force the display of a post if I hacked the template. I think I have made a breakthrough of sorts. Looking at the translations for the Post class in models.py I could see that this was where the template should have been picking up the post_text from but it wasnt delivering anything to the front end so I saw that abstract was another option, tried that and it works just fine. I replaced:
with
and now my page to display a single post displays the full post properly. I wonder why post_text was producing nothing. |
OMG I think I've worked this out. I hadn't realised that "abstract" and "post text" were two different fields. I don't think I even saw the second area for post text but its hard to say now given all the changes I've made. Still I've learned a lot about this plugin and its working now so all's well. Thanks so much for your advice. |
Hi I have setup the django cms blog. I have created the blog post. The content is proper in my listing page but blog details page does not having any content. Pleas help on this.
I have found that we can add it on text from front end. I can create a blog post from front end but edit buttons is disabled on all posts.
I have tried BLOG_USE_PLACEHOLDER=False setting to enable text in admin end for post but that is not working.
The text was updated successfully, but these errors were encountered: