Recipe 52: Views Custom Field
Note
Ingredients
Views Custom Field module:
http://drupal.org/project/views_customfield
Any table, or list view, such as swim_groups (Recipes 3 and 4)
Relatively new and little-known, the Views Custom Field module can be quite handy. Use it to add row numbers, node IDs, special links, or whatever suits your needs. Once the module is installed, simply add the Views Custom Field and enter a label and a value.
Install the Views Custom Field module.
Clone the swim_groups view, and make the following changes:
Name
swim_groups_custom
Access
admin
URL
swim-groups-custom
Page View Type
Table View
Fields fieldset
Add Node: Title
Add a Views Custom Field: Text field.
Set the Label to ID and the Value to <?php print $data->nid; ?>
Click the Move this item to the top icon.
Save the View and go to
swim-groups-custom
. Notice the new Node ID numbers.
Recipe notes
More than one custom field may be included in a single view.
Views custom fields are certainly not limited...