Copy /includes/modules/category_row.php to /includes/modules/your_template/category_row.php.
Find this line
PHP Code:
$list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br />' . $categories->fields['categories_name'] . '</a>');
and replace with
PHP Code:
// subheadings - gjh42 20080617
$section_check = $categories->fields['categories_name'];
$section_header = '';
if (in_array($section_check,explode(",",'list_names_to_start_new_lines_here,separated_by_commas,and_no_spaces'))) {
$col = 0;
$row ++;
switch ($section_check) {
case "first name":
$section_header = 'First Section';
break;
case "second name":
$section_header = 'Second Section';
break;
} //switch
$list_box_contents[$row][$col] = array('params' => 'class="sectionHeader" style="width: 100%;"',
'text' => $section_header);
$row ++;
} //if
// /subheadings
$list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br />' . $categories->fields['categories_name'] . '</a>');
This file works a bit differently than product_listing.php, but I think this version of the code will do the job. Let me know if anything needs to be fixed.