Creating the magazine's blog

As for the forum, we need some service for our site to give it a Web 2.0 dimension. The real killer application is the blog. Here, the editors should be able to freely write about their views and company news, and provide a human face to a company-related site.

Installing a blog application is very easy, and the eZ Webin package comes in handy again for doing this. This package gives us features such as the tagging and comment systems, and the post calendar widget.

Adding the blog

The blog engine relies on two content classes: blog and blog post. The first one acts as a container for the post, whereas the second is used to write new posts.

To add a blog to our site, we have to go to the backend and add a blog object as a child of the home page.

Next, we have to specify the name of the blog—in our case Editor's nest—and then provide a description of the blog:

Adding the blog

After we add this class, the blog will appear on the relative path in the public siteaccess with the default templating of the eZ Webin package. We can see this in the next screenshot.

Note

Changing the blog layout

We can change the layout of the blog (for example, to remove the calendar) at any moment. We simply have to overwrite the eZ Webin blog template located in the packtmediaproject/extension/ezwebin/design/ezwebin/templates/parts/blog folder with the one that we will create in our extension, as we did in the Chapter 7, for the default eZ Webin template.

Adding the blog
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.19.75