Tag Archives: Drupal

Drupal 7 – Limit the number of countries in the country list of the Location module

If you want to include location information in your content type. The Location module could help. But by default, the list of selectable countries are very long and sometimes we may want to limit it to a few countries only. This can be done by creating a custom module but it only works for Location CCK but not for Node Location and User Location

1. Download and enable the Location and Location CCK modules
Continue reading Drupal 7 – Limit the number of countries in the country list of the Location module

DumpCamp – Where passion lies

Everything starts from an email written by Ronnie~

DumpCamp is a group of passionate software engineers who value on good stuff like technology and best practice. Our 1st meeting was held on Philip’s home @ 2012-01-28 which is our official meeting venue. =P

We had 2 sharing sessions on our 1st official gathering.
1. Splunk by Philip
2. Introduction to Drupal by me
 
Continue reading DumpCamp – Where passion lies

Drupal 7 – Add Javascript files on specific paths by custom module

In the past, i always added js files on theme level. This is not a good approach because the aggregated theme js will be quite large and it is loaded on every pages even js code is not used.

So this time i try to add the js on specific path only when it is needed. This is done by creating a custom module. Let’s name the custom module eureka_js.

1. Inside the eureka_js module folder, we have the following files.

  • js/eureka.js
  • eureka_js.info
  • eureka_js.module

Continue reading Drupal 7 – Add Javascript files on specific paths by custom module

Working with menus in Drupal 7 @ 3

We have Special menu items module and Nice Menus which makes Drupal menu editing much more convenient.
Working with menus in Drupal 7 @ 1 – Special menu items module
Working with menus in Drupal 7 @ 2 – Nice Menus

But there is a bug when using both of them together. After you setup a Nice menu and you set the parent menu item path to <nolink>, the hyperlink is still there. Continue reading Working with menus in Drupal 7 @ 3