In the content type setting, add a new CCK field as follow.
Continue reading Drupal – CCK Checkbox
Category Archives: CMS
Drupal – Set Views Exposed Filter to show all values by Default
After exposing the filter in views, we can configure it as follow such that it will automatically add an <Any> option in the selection list and display all values when the view is first rendered. Continue reading Drupal – Set Views Exposed Filter to show all values by Default
Drupal – Escape the Hex Characters in drupal_goto()
In Drupal, you can redirect to a specific URL using the drupal_goto() method. For example, if you want to go to a node with nid = 100, the following code will do. Continue reading Drupal – Escape the Hex Characters in drupal_goto()
Drupal – Send SOAP Request by NuSOAP
In PHP, we can use cURL library for generating SOAP request.
PHP – Send a SOAP Request by cURL
Except using the cURL library, we can also use the NuSOAP. The NuSOAP provides much more convenient way to create the SOAP request and it can be used in Drupal. The following example is base on the Blog post written be Eric London.
Executing a SOAP call from Drupal using nusoap Continue reading Drupal – Send SOAP Request by NuSOAP
Drupal – Add iframe in TinyMCE Editor
If you have installed the WYSIWYG module with TinyMCE Editor, you will find that it does not support the iframe element. Say if you embed a Google Map in the HTML body, it will disappear once you edit the node.
Ya, it’s Google again, i found a post written by Sam Michel who resolve the problem just by simply create a custom module with the hook_wysiwyg_plugin. Continue reading Drupal – Add iframe in TinyMCE Editor
Drupal – Add Teaser Break in Node Body
Sometimes we only want to show part of the node body as an abstract. In this case, we can achieve this by adding a Teaser Break in the node body. A Teaser break is simply a HTML code as follow Continue reading Drupal – Add Teaser Break in Node Body
Drupal – Translate View Title
In Drupal Views module, you could not configure the view title translation in the view settings page. The post shows you how to translate view title with the i18n module. For more information about the i18n module, please refer to
Drupal – Cufón Problem in Internet Explorer 8
The Cufón module could convert the text into image to get rid of the font display problem in different OS. For more information, please refer to Drupal – Convert Text into Image Using Cufón. Continue reading Drupal – Cufón Problem in Internet Explorer 8
Drupal – Convert Text into Image Using Cufón
The font display is a big problem in Web development because not all the fonts are cross-platform compatible. A work around is to convert the styled text into an image using Javascript. In Drupal, there is a module called Cufón. Continue reading Drupal – Convert Text into Image Using Cufón
Drupal – Add Extra Countries for Ubercart
By default, the Ubercart module provided a list of countries where you can add or remove them in Adminster -> Store administration -> Configuration -> Country settings.
If you cannot find the countries u need, there is an additional list of countries in the Ubercart website. Add them to your Drupal site as follow. Continue reading Drupal – Add Extra Countries for Ubercart