Blog? how do I add it to my site?
So I made 2 templates. 1 is the home page the second is the sub page. This are custom templates that I made.
So each sub page is example: domainname.com/index.php/about and so on.
In the templates I created areas to put blocks within div tags. They work great.
I need to add a blog on a page. How do I do this? Can a blog exist within a block? I read that it needs to go into a page type. But that kind of screws everything up because I have templates already create. How do I do this? How do I insert a blog into a page?
I want to add a news section with latest stories in main block and archived links in right hand sidebar - the usual setup.
I am guessing I use my subpage theme with the "blog entry" page type but then I get the error that I need the view.php file with my theme. I have copied this file over from one of the Concrete5 pre-installed themes but I'm unsure how to customise this file to work with my own theme.
Please can someone point myself and ludicrousman in the right direction as this is my major stumbling block at the moment.
<?php $a = new Area('Main'); $a->display($c); ?>
<?php print $innerContent; ?>
It's not really something you do through blocks, but rather it encompasses several different aspects of C5 -- page types, custom attributes, page list, tags, search, etc. The overall idea is that each blog post is a page in your site. The blog post can have any kind of blocks in it you want -- you aren't restricted to just having one block of content. Then you have some kind of top-level "blog index" page that lists out all of the blog post pages -- just shows their titles and an excerpt of content, with a link to the full page (blog post).
The essence of Concrete5's functionality and architecture is that most things are page-based, and one page generally equals one "unit of information", or something like that -- so yes you are supposed to have a different page for every blog post. You might be interested in using the "Composer" feature which lets you add new pages via a dashboard interface (so the workflow is more like Wordpress, for example).