[Drupal Views][Drupal CCK] How to show CCK Multigroup content in Drupal Views?

| | 1 min read

If you are looking for a solution to show CCK Multigroup content correctly in Drupal Views in your Drupal site then read on to get the details.

Follow the steps below to implement CCK Multigroup content in Drupal Views

  • Select the fields with the option "Group multiple fields and hide fields"
  • Next proceed to install Views Custom Field
  • After installation choose PHP and enter the following code to check out all the variables:
  • 
    
  • After you find the variables that interest you, write a script to print after erasing or commenting out the earlier statement.
  • node_data_field_title_field_title_value as $key => $linktitle) {
      $link = $data->node_data_field_title_field_title_value[$key][value];
      $link = '<div><a href ="'.$data->node_data_field_url_field_url_value[$key][value].'">'.$link.'</a></div>';
      print $link;
    }
    ?>
    

Hope that helps.

The easiest way to solve a Drupal issue is to hand it to the Drupal experts. We can provide a wide range of Drupal services to help you maintain and manage your Drupal websites. Get in touch with us to know more.