Archive for June 30, 2011

How to get rid of drupals default “/node” page

Share

Do you want to get rid of drupals default “/node” page

We all know Drupal has a default front page which shows a view of nodes promoted to home page.

We might forget that we can still go to this page and user can see the content in the manner we dont want user to see.
Do you want to get rid of drupals default “/node” page?

We all know Drupal has a default front page which shows a view of nodes promoted to home page.

We might forget that we can still go to this page and user can see the content in the manner we dont want user to see.

A simple trick is we can make it “page not found”.

We can use Drupal’s the custom_url_rewrite_inbound function..

Open your settings.php file (located at /sites/default/settings.php)

And append following code in it. Read more

Sharing is cool...Share on Facebook
Facebook
Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin
2,187 views

How to create a drupal node programmatically

Share

How to create a drupal node programmatically

Many a times we want to create Drupal node programatically when there is a big data in excel format or in some other format and we want it to be added in our Drupal site through cck form cause its time consuming to do that data entry manually.



If you are finding way to do that data entry programatically then here is the solution.

Suppose you want to create nodes for your content type having fields – book number, book name, author name and publication year. Read more

Sharing is cool...Share on Facebook
Facebook
Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin
2,736 views

How to set cron job on unix

Share

Are you looking for how to set cron job on Unix? Then you are at the right blog..

cron

How to set cron job on unix

Cron job is used to ask your server to execute some code at certain period say every minute, hour, day, month or an year. To set cron job follow these commands.

Go to command prompt and type command below.

This will open one file for you. Read more

Sharing is cool...Share on Facebook
Facebook
Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin
2,521 views