Update the theme for contact display
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 15 May 2019 15:59:56 +0000 (11:59 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 15 May 2019 15:59:56 +0000 (11:59 -0400)
Update when it's getting cgcs for contact. Need it before output.

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

index 1edf980..1a170b4 100644 (file)
@@ -73,6 +73,7 @@ and open the template in the editor.
 
             {foreach $contacts as $contact}
 
+                {$cgcs = apply_filters( 'glm_custom_fields', 'CGCS?', $contact.id )}
                 {if $contact.active.value == 1}
 
                 {$customFieldGroups = apply_filters('get_glm_custom_grouped_fields','glm-member-db-contacts',$contact.id)}
@@ -105,7 +106,6 @@ and open the template in the editor.
                                     {$contact_title=""}
                                     {$contact_mobile_phone=""}
                                     {$contact_office_phone=""}
-                                    {$cgcs = apply_filters( 'glm_custom_fields', 'CGCS?', $contact.id )}
                                     {$contact_fname=$contact.business_fname}
                                     {$contact_lname=$contact.business_lname}
                                     {$contact_addr1=$contact.business_addr1}