C5 Blog Index help
Permalink 1 user found helpful
I have a question regarding the blog addon. Right now using the page index block I am showing a preview of my blog on the blog index page
http://apoprecords.com/blog/
When you click on read full post it opens the full blog post. What I'm having trouble with is in the full blog post it is showing the two different blocks, the top block shows what was previewed on the index page as well as on my home page, and right under it is the full blog entry.
When I create a new blog I add the preview to the add to "main block", and add the full post to "add to blogpost more".
How can I get it to not to show what is in the main block when someone clicks "read more"
Any help with this would be greatly appreciated.
**Please note the blog does have a couple curse words in it and a youtube clip from a horror movie. Just wanted to warn anyone that is willing to help me out. Don't want to upset or offend anyone that clicks the link.**
http://apoprecords.com/blog/
When you click on read full post it opens the full blog post. What I'm having trouble with is in the full blog post it is showing the two different blocks, the top block shows what was previewed on the index page as well as on my home page, and right under it is the full blog entry.
When I create a new blog I add the preview to the add to "main block", and add the full post to "add to blogpost more".
How can I get it to not to show what is in the main block when someone clicks "read more"
Any help with this would be greatly appreciated.
**Please note the blog does have a couple curse words in it and a youtube clip from a horror movie. Just wanted to warn anyone that is willing to help me out. Don't want to upset or offend anyone that clicks the link.**
I'm using a blog that was set up following the directions at
http://www.concrete5.org/documentation/how-tos/editors/manually-set...
I don't think it is an actual add on.
http://www.concrete5.org/documentation/how-tos/editors/manually-set...
I don't think it is an actual add on.
I think the intended usage is that your first paragraph or whatever you want to appear in the blog index page would go in that first area, then the "blog post more" would start off where the first one ended (instead of repeating what you said up there).
But if you want it to be totally different, you could modify the blog detail template as follows:
1) On your server, copy this file:
...to this directory:
(you may need to create that top-level "page_types" directory if it doesn't already exist).
2) Now edit the new copy of that file (YOURSITE/page_types/blog_entry.php) and change this line:
...to this:
Now that area will only appear when you edit the page (but it will still be available for the blog index page to pick up its contents for the excerpt).
But if you want it to be totally different, you could modify the blog detail template as follows:
1) On your server, copy this file:
YOURSITE/concrete/page_types/blog_entry.php
...to this directory:
YOURSITE/page_types/
(you may need to create that top-level "page_types" directory if it doesn't already exist).
2) Now edit the new copy of that file (YOURSITE/page_types/blog_entry.php) and change this line:
<?php $as = new Area('Main'); $as->display($c); ?>
...to this:
<?php $as = new Area('Main'); if ($c->isEditMode()) { $as->display($c); } ?>
Now that area will only appear when you edit the page (but it will still be available for the blog index page to pick up its contents for the excerpt).
Thanks for the help. I did everything like you said, cleared the cache and then logged out and can still see it when not in edit mode.
I might just do as you say it was intended and only post part of the blog in the first section and the rest in the read more section. What I dont like about that is if someone goes directly to the blogpost it kind of messes with the continuity of the post. You can see what I mean at the link below.
http://apoprecords.com/blog/apopaganda-its-called-having-a-good-tim...
I might just do as you say it was intended and only post part of the blog in the first section and the rest in the read more section. What I dont like about that is if someone goes directly to the blogpost it kind of messes with the continuity of the post. You can see what I mean at the link below.
http://apoprecords.com/blog/apopaganda-its-called-having-a-good-tim...
Hmm... I don't understand why it would still show you that content when not in edit mode. I wonder if your theme has its own blog_entry.php file -- do you know how to check your theme templates? If so, go to your theme directory and see if there's a blog_entry.php file there, and if there is, make the same edit to that as I show above. If you're not sure how to do that, post the code of that file and I'll show you exactly how to modify it.
That fixed it. I'm using the dark chocolate theme, and once I updated the blog_entry.php as you described it worked. Thanks for the help. Very much appreciated.
In that case, the best spot for this question is in their Support area on this page:http://www.concrete5.org/marketplace/addons/blog/...
That being said, someone might have an answer for you here.