User Manual - Blogs
A simple, yet effective blog management package is also available with Envrin CMS. Check to ensure a "Blogs" menu exists within your administration panel, and if not, install the "Blogs" package through the Maintenance->Package Manager menu, Available Packages tab.
The package fully supports multiple blogs, although this feature isn't really applicable at the moment, until if and when a package allowing you to manage multiple web sites from one control panel is made available. One default blog is created upon installation, and you may manage all of your blogs through the Blogs->Blogs menu. This menu is quite basic, and simply allows you to create / delete blogs.
You can easily manage all blog posts through the Blogs->Posts menu, which consists of two simple tabs. One that allows you to
easily add a new post, and another that lists all existing posts. You may manage the details of any existing post by clicking on the desired
Lastly, you can manage all comments made to your blog through the Blogs->Comments menu. Currently, all comments made to your blog are automatically approved, although options will be available in a near future upgrade to change this. This menu should be quite straight forward, and no explanation is really necessary.
Manage your blogs, posts, and comments is quite simple and straight forward. However, of course you'll want to integrate the blog with your web site. All of your blog posts can be viewed via the /blog URI of the web site, such as http://yourdomain.com/blog. Within the directory at /data/tpl/public/blog/ are two templates that you will probably wish to modify:
- index.tpl -- Is the http://yourdomain.com/blog page, and lists all recent posts.
- post.tpl -- Displayed when viewing an individual post.
You can also easily place a list of the most recent posts on any page of your website (eg. page footer) by adding HTML code such as the following:
<ul> <blog_posts id="1" limit="3"> <li> <img src="~blog_posts.featured_image~" width="90" height="65" border="0" style="float: left; margin-right: 20px;" /> <a href="~blog_posts.url~">~blog_posts.title~</a><br> ~blog_posts.excerpt~<br><br> ~blog_posts.date_added~ | ~blog_posts.num_comments~ Comments<br><br> </li> </blog_posts> </ul>
As you can see, you simply need to use the <blog_posts> ... </blog_posts> tags, and inside of them place the contents you'd like displayed for each post. When the software parses the template, it will notice these tags, take the contents between them, and copy it over and over for each post. The opening tag allows for two attributes, "id" which is the ID# of the blog and is generally always 1. You can also specify a "limit=X" attribute, which denotes the number of posts to display.
Within these HTML tags, you can use the following merge fields, which are replaced by the appropriate information.