PHPJavascript

Web Development Guide – My Personal Library of Tutorials and Scripts

Create typical blog using drupal

January27

The drupal blog module present in the core is not sufficient lacking the main features of a blogging website. Wordpress provide us the standard features of a blogging website in a single package.

The missing features can be categories, archives, recent posts, latest comments, blogroll and there are many more I am just talking about the main ones.

First activate the blog and taxonomy module (admin/build/modules)

Go to admin/content/categories. Create the different categories for your blog. First create vocabulary eg “category” then add “terms” eg books, novels, reading, writing

Create the different posts in their respective categories

Then download and activate module taxonomy_menu to display the categories of a blog in your menu. Create a custom menu called sidebar_menu, shift the categories in the sidebar_menu. Then create region “sidebar_region” shift the sidebar_menu in sidebar_region using blocks.

Then create archives using this link http://drupal.org/node/52037. Use blocks (admin/build/block) to view block in sidebar_region

Then create recent posts by creating views (admin/build/views).

  1. Create view ‘block’
  2. View type ‘list’
  3. Fields ‘node title’
  4. Filter ‘node type=blog entry’
  5. Sort ‘created time’ descending

View the block in custom region sidebar_region

posted under PHP
3 Comments to

“Create typical blog using drupal”

  1. On April 6th, 2011 at 9:29 am Drupal flv player Says:

    Wow! I found some surprising info here, i was looking long back……….. i like this post, so i have bookmarked this blog! Thanks for the Drupal tuto :)

  2. On April 10th, 2011 at 6:14 am admin Says:

    :)

  3. On April 10th, 2011 at 7:39 am admin Says:

    In case the blog is just a part of your website, do the following to avoid the blocks of archive, latest posts, category etc to appear on the blog section.

    Configure the blocks, in the “visibility settings” section, add the following:

    < ?php
    $match = FALSE;

    $url = request_uri();

    if ((strpos($url, "blog"))){
    $match = TRUE;
    }
    return $match;
    ?>

Email will not be published

Website example

Your Comment:

 

12,829 spam comments
blocked by
Akismet