Adding group name
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 8 Aug 2018 20:23:58 +0000 (16:23 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 8 Aug 2018 20:23:58 +0000 (16:23 -0400)
output the name of each group for custom fields.

glm-member-db-contacts/views/front/contacts/list.html

index b170296..7267889 100644 (file)
@@ -136,9 +136,9 @@ and open the template in the editor.
                                         {if $contact.url}<div class="glm-contact-info-url"><span class="field-title">Website </span></span><a href="{$contact.url}" target="_top">{$contact.url}</a></div>{/if}
                                     </div>
                                     <div class="small-12 columns">
-                                        
-                                        {if $contact.org
-                                        }<div class="glm-contact-info-org">
+
+                                        {if $contact.org}
+                                        <div class="glm-contact-info-org">
                                             <span class="field-title">Company Name </span>
                                             <span class="field-value">{$contact.org}</span>
                                         </div>
@@ -448,7 +448,8 @@ and open the template in the editor.
                                         </h3>
                                     <div class="section-data">
 
-                                        {foreach  $customFieldGroups as $customFields}
+                                        {foreach  $customFieldGroups as $groupName => $customFields}
+                                            <b>{$groupName}</b>
                                             {if !empty($customFields[0].field_data)}
                                                 {foreach $customFields as $field}
                                                     {if $field.field_data}