How to embed views in drupal pages

Here is the PHP code you can use on any drupal ‘page’ with input format as php code.

Kindly add your comments for any query or suggestion.

Please feel free to login using google or facebook and create a forum topic to get your query answered in few hours here http://www.learn-drupal.in/forums/forum/drupal-forum-post-installation

Thanks,
Sachin

Sharing is sexy...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
400 views

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

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 sexy...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
2,041 views

How to create a drupal node programmatically

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 sexy...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
2,264 views