Product Listings: Header and Footer logic

Aurora allows you to  modify a variety of options on a product listings page, using HTML snippets for the Header and Footer.  

Below is an example that is best practice amongst our clients.  

{* Only if we are on the first page of a category do we display the category header.  
	* The additional check of $headerFilters confirms if a filter is selected, e.g. /books/br:adidas/ would mean a filter is selected.  If a filter is selected, you are unlikely to want to show the same header, as otherwise you could end up with duplicate content penalties 
*}
 
{if (!$paging.page || $paging.page == 1) AND !$headerFilters}


{$categoryInfo.category_header}
 
{*
	* If we are on a filter and only on the first page, then see if a filter header has been created
*}

{elseif (!$paging.page || $paging.page == 1) AND $filter_header}


{$filter_header}


{/if}