We could add location information to node using the Location module. If the GMap module is enabled, we could even show the location with Google Map in Views.
1. Download and enable the GMap module.
We have talked about using Views Custom Field which really makes Views more versatile. In the custom PHP field, you can get the data of other fields from $data. But the field names under the $data may changed later as you modify the view.
We can create a CCK selection list or checkboxes field with a list of allowed values in key|value pair. normally when you retrieve a node content, what you get is only the key instead of the value.
During the Drupal development, sometimes you may find the white screen of death(WSOD) and you have no idea what’s happening. To tackle the WSOD, add the following lines in the index.php located in the Drupal webroot. Continue reading Drupal – Tackle the White Screen of Death WSOD→
We could get the flagged items by making the flag_get_user_flags() call. Assume we have setup a user flag called connect, the following example will return a list of a “connected” users which are flagged by a specific user (uid = 29). Continue reading Drupal – Get flagged items of a specific user by PHP→
Sometimes we may want to render a data without the theme page template. This is useful when we want to retrieve data through asynchronous call such as Ajax.