-
Get view block by view name
This is a simple function to grab a View block by view name. Usage: my_get_view_block(“my_view_name”); Code: function my_get_view_block($viewname = NULL){ if(!empty($viewname)){ # from View name, i got the view ID $vid = db_result(db_query(‘SELECT vid FROM {view_view} WHERE name = “%s”‘,$viewname)); # read related comments for views_view_block on view.module $block = views_view_block($vid); return $block; } else […]
-
Wiki style: multilingual subdomain on 6.x
Drupal 6.x comes with some nice multilingual features: I want to use these to transform my multilingual website from “prefix path” (http://example.com/en) to language subdomains (http://en.example.com). I like this method on Wikipedia, so it will be a nice additions to my Drupal wiki site. Prerequisites: Drupal 6.x (tested on Drupal 6.x) A sites/default directory with […]
-
Blamcast’s: speed up Drupal
John Forsythe, the father of Drupal Modules, write this interesting article enumerating some Drupal performance tips.
-
Make drupal working in a subdirectory
Tested on HostMonster.com (main domain) Drupal 5.7 e.g. drupal57 as public_html subdirectory containing Drupal codebaseI’ve an existing Drupal installation within public_html on HostMonster for my main domain. Here the steps I’ve done to move the codebase on a subdirectory without changing URLs: Put offline the website: go to Administer > Site Maintenance Backup your codebase […]