Changed the member list members to show Year Brand Class as the name
authorLaury GvR <laury@gaslightmedia.com>
Mon, 10 Apr 2017 18:29:47 +0000 (14:29 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 10 Apr 2017 18:29:47 +0000 (14:29 -0400)
The member list had to show the name as a combination of Year +
Brand + Class.

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

index 40ca279..3974c53 100644 (file)
                         <h4 class="glm-member-title">
                             {if $settings.list_show_detail_link}
                                 <a href="{$siteBaseUrl}{$settings.canonical_member_page}/{$member.member_slug}/">
-                                    Year Brand Class {apply_filters('glm_custom_fields', 'year', $member.id)}
+                                    {apply_filters('glm_custom_fields', 'year', $member.id)} 
+                                              
+                                    {foreach $member.categories as $category}
+                                        
+                                        {if $category.name|substr:0:21 eq "Housing Manufacturers"}
+                                            {$category.name|substr:23}
+                                        {/if}
+                                        {if $category.name|substr:0:15 eq "Housing Classes"}
+                                            {$category.name|substr:17}
+                                        {/if}
+                                    {/foreach}
                                     
                                 </a>
                             {else}