Creating a Blog

Permalink
Hey guys, I read a lot about how to get a Blog started with C5 but the more I read the more I'm confused to be hones. What I would love to have at the end:

A Page that displays a list of my Blog Entries (written in Composer) and a Thumbnail with a short excerpt of the text. When I click on the Thumb I shall be redirected to the actual blog entry.

Now I have two questions:

1. Is this even possible? I think it is, but I don't see how. I created a C5 theme right now from a HTML site I designed and would love to add this.

2. Can someone explain me how to get this stuff done? Something like a guideline or a good tutorial would be very welcome!

Hope you can help me. Using C5 not that often and am working on a charity project right now and would love to realize it in C5 as the people that will work with the site later pretty sure will love the way C5 works.

 
enlil replied on at Permalink Reply
enlil
This is pretty easy :)

Create a "Blog" page just under your home page. On this page you will have a page list that displays all "blog_entry" pages below it.

Now, through the dashboard, make sure your blog_entry page type exists and is set up for composer.

Then from your edit hover menu you will be able to create new composer posts in your blog section.

Alternatively, there are some good out of the box solutions available in the marketplace!
mlmedia replied on at Permalink Reply
Thanks for the fast answer - easy sounds good, still not sure :D

So first I can create lets say a blog_wall.php in my themes folder and style it as I would like it to display later - what kind of code do I need to add to make sure my articles will be loaded? Is it just something like a usual 'Block'?

After doing this I enable Composer to edit this site - right?

Then I should be able to publish content, how do I manage to get stuff like article excerpts and thumbnails working?

Sorry, I know these are a lot of questions but C5 is pretty cool and I just don't want to use another system to get it running.
enlil replied on at Permalink Reply
enlil
The blog_entry page type should already be available in the c5 core for starters.

Here is a good resource for setting up Composer:

https://www.concrete5.org/documentation/how-tos/editors/setting-up-a...

As far as the thumbnails and excerpts, there are custom templates you can apply to the page list to display like that, or you can modify or create your own!
mlmedia replied on at Permalink Reply
Ok, thanks for your answer and please don't be annoyed, but could you tell me whether this is the right way to go or not?

1. Creating a blog_wall.php where all my entries will be listed. Inside this file I put something like this:

<?php
$areaMain =new Area('blogwall');
$areaMain->display($c);
?>

2. Creating a blogpost.php - this one is used for my single article view and contains something like this:

<?php
$areaMain =new Area('singlearticle');
$areaMain->display($c);
?>

3. I add a new page under "Home" using the blog_wall.php

4. Now I need to do what?
enlil replied on at Permalink Reply
enlil
add your blogpost.php page type from dashboard > page types.

then from in dashboard > page types, set it up for use in composer...

EDIT: you will need to add your blog_wall page type as well, but do not need to set it up for composer :)
mlmedia replied on at Permalink Reply
Ok, right now I did more or less what I wrote above. Create a blog_wall.php with a content section in which I added a page-list showing all pages added below this site and an article.php editable with the composer, always placed below the Blog site. I can go to the Composer, create a new Article and after that Edit this Article. Visiting the Blog site I can see a list of the single entries.

Now: how do I get the thumbnails of the article images of my single posts to the article-list of the Blog site and how do I get an excerpt.
enlil replied on at Permalink Reply
enlil
you should have blog index and blog index thumbnail templates available for the page list block. You should be able to modify them to your liking. The thumbnail template works by inserting an editable area in a page type like this:
<?php 
if ($c->isEditMode()) {
     $a = new Area('Thumbnail Image');
     $a->display($c);
}
?>

Place the image you want in the page list there and it will display in the page list!


You also have the Page List Teasers add-on, which would display the "Main" area from each page in the list, or whichever area you modify it to display.
mlmedia replied on at Permalink Reply
Thank your for the great support! I dived into several CMSes in the last few months but there is no better community than this one! Gonna give it a try and will ask here if I fail again ;-)
enlil replied on at Permalink Reply
enlil
It's fun. Customizable is not the right word for it. Dive in! You'll be here a while ;)
mlmedia replied on at Permalink Reply
wooohooo!
It works, doesn't look good yet, but it works. Now I get a List of articles with a thumbnail and a short excerpt - do you have an idea how i can add a css id of "firstarticle" to the lastest article I wrote? I could use jQuery but I'm pretty shure there is something like a "featured" attribute or so.
I would like to have this for giving the first article a bigger thumbnail and larger excerpt if that's possible - what do you think?

By the way: I followed your description and this tutorial to get it done:http://concrete5tricks.com/blog/page-attributes-thumbnail-images/...