diff --git a/model/PFAHandler.php b/model/PFAHandler.php index e48db32a..096ce03d 100644 --- a/model/PFAHandler.php +++ b/model/PFAHandler.php @@ -119,6 +119,7 @@ abstract class PFAHandler { protected $msg = array( 'can_create' => True, 'confirm_delete' => 'confirm', + 'list_header' => '', # headline used in list view ); # called via another *Handler class? (use calledBy() to set this information) diff --git a/templates/list.tpl b/templates/list.tpl index a46d9e2a..6881e93d 100644 --- a/templates/list.tpl +++ b/templates/list.tpl @@ -29,6 +29,18 @@
+{if $msg.list_header} + {assign var="colcount" value=2} + {foreach key=key item=field from=$struct} + {if $field.display_in_list == 1 && $field.label}{* don't show fields without a label *} + {assign var="colcount" value=$colcount+1} + {/if} + {/foreach} + + + +{/if} + {foreach key=key item=field from=$struct} {if $field.display_in_list == 1 && $field.label}{* don't show fields without a label *}
{$PALANG.{$msg.list_header}}