Combo Page title

15 posts by 4 authors in: Forums > CMS Builder
Last Post: September 25, 2014   (RSS)

The error has gone, but there is still no title showing for the selected category...

Cheers,

Tim (toledoh.com.au)

Hi Tim,

I'm not sure what structure the outputted data is in, could you add the following showme(); so I can see what's being returned?

  if($productsListsRecords){
    $categoryTitle = "Category - ".$productsListsRecords[0]['category:label'];
  }
  showme($productsListsRecords);
  exit;

Once this code is added, you should find that an array is output on the page when you select a category. If you could post what's output in this thread, then I can work out what's causing the error.

Cheers,

Greg

Greg Thomas







PHP Programmer - interactivetools.com

Array ( [0] => Array ( [_filename] => Waterco-Opal-Cartridge-Filter [_link] => /productsDetail.php?Waterco-Opal-Cartridge-Filter-14 [_tableName] => products_listing [category] => 5 [category:label] => Pool Filters [content] => <p>The Opal cartridge filter provides sparkling clear water and requires minimal maintenance.</p> <p>The filter's screw on lock ring allows easy access to the filter cartridge for removal, cleaning and installation in a matter of minutes.</p> [createdByUserNum] => 2 [createdDate] => 2014-08-13 11:52:44 [dragSortOrder] => 1407930764 [hidden] => 0 [hidden:text] => No [num] => 14 [price] => 461 [title] => Waterco Opal Cartridge Filter [updatedByUserNum] => 2 [updatedDate] => 2014-08-13 11:56:06 [image_s] => Array ( [0] => Array ( [num] => 147 [order] => 1 [createdTime] => 2014-08-13 11:51:54 [tableName] => products_listing [fieldName] => image_s [recordNum] => 14 [preSaveTempId] => [filePath] => /home/freestyl/public_html/cmsAdmin/uploads/opal.jpg [urlPath] => /cmsAdmin/uploads/opal.jpg [width] => 140 [height] => 154 [thumbFilePath] => /home/freestyl/public_html/cmsAdmin/uploads/thumb/opal.jpg [thumbUrlPath] => /cmsAdmin/uploads/thumb/opal.jpg [thumbWidth] => 137 [thumbHeight] => 150 [thumbFilePath2] => [thumbUrlPath2] => [thumbWidth2] => 0 [thumbHeight2] => 0 [thumbFilePath3] => [thumbUrlPath3] => [thumbWidth3] => 0 [thumbHeight3] => 0 [thumbFilePath4] => [thumbUrlPath4] => [thumbWidth4] => 0 [thumbHeight4] => 0 [info1] => Waterco Opal Filter [info2] => [info3] => [info4] => [info5] => [_tableName] => uploads [filename] => opal.jpg [extension] => jpg [isImage] => 1 [hasThumbnail] => 1 ) ) [createdBy.num] => 2 [createdBy.createdDate] => 2013-05-26 05:37:53 [createdBy.createdByUserNum] => 1 [createdBy.updatedDate] => 2014-03-11 05:04:27 [createdBy.updatedByUserNum] => 1 [createdBy.fullname] => Chris Jones [createdBy.email] => enq@cnmlhk.com [createdBy.username] => cnmlhk [createdBy.lastLoginDate] => 2014-08-19 01:00:00 [createdBy.expiresDate] => 2013-05-26 00:00:00 [createdBy.neverExpires] => 1 [createdBy.isAdmin] => 0 [createdBy.disabled] => 0 [createdBy.accessList] => [createdBy._filename] => [createdBy._link] => javascript:alert('Set Detail Page Url for this section in: Admin > Section Editors > Viewer Urls') ) [1] => Array ( [_filename] => Dolphin-RS1-Hybrid-Robot-Cleaner [_link] => /productsDetail.php?Dolphin-RS1-Hybrid-Robot-Cleaner-13 [_tableName] => products_listing [category] => 2 [category:label] => Pool Cleaners [content] => <p>Dolphin Hybrid Rs1</p> <p>Cleans, scrubs &amp; brushes<br />Floor and Cove areas cleaned<br />Electric Hydro powered drive mechanism<br />Systematic, intelligent scanning for optimum coverage<br />Suits pools up to 12 m<br />2 Year warranty</p> [createdByUserNum] => 2 [createdDate] => 2014-08-13 10:59:28 [dragSortOrder] => 1407927568 [hidden] => 0 [hidden:text] => No [num] => 13 [price] => 640 [title] => Dolphin RS1 Hybrid Robot Cleaner [updatedByUserNum] => 2 [updatedDate] => 2014-08-19 00:52:13 [image_s] => Array ( [0] => Array ( [num] => 146 [order] => 1 [createdTime] => 2014-08-13 10:59:57 [tableName] => products_listing [fieldName] => image_s [recordNum] => 13 [preSaveTempId] => [filePath] => /home/freestyl/public_html/cmsAdmin/uploads/hybrid-300x203_001.jpg [urlPath] => /cmsAdmin/uploads/hybrid-300x203_001.jpg [width] => 300 [height] => 203 [thumbFilePath] => /home/freestyl/public_html/cmsAdmin/uploads/thumb/hybrid-300x203_001.jpg [thumbUrlPath] => /cmsAdmin/uploads/thumb/hybrid-300x203_001.jpg [thumbWidth] => 150 [thumbHeight] => 102 [thumbFilePath2] => [thumbUrlPath2] => [thumbWidth2] => 0 [thumbHeight2] => 0 [thumbFilePath3] => [thumbUrlPath3] => [thumbWidth3] => 0 [thumbHeight3] => 0 [thumbFilePath4] => [thumbUrlPath4] => [thumbWidth4] => 0 [thumbHeight4] => 0 [info1] => Dolphin RS1 Hybrid Robot Cleaner [info2] => [info3] => [info4] => [info5] => [_tableName] => uploads [filename] => hybrid-300x203_001.jpg [extension] => jpg [isImage] => 1 [hasThumbnail] => 1 ) ) [createdBy.num] => 2 [createdBy.createdDate] => 2013-05-26 05:37:53 [createdBy.createdByUserNum] => 1 [createdBy.updatedDate] => 2014-03-11 05:04:27 [createdBy.updatedByUserNum] => 1 [createdBy.fullname] => Chris Jones [createdBy.email] => enq@cnmlhk.com [createdBy.username] => cnmlhk [createdBy.lastLoginDate] => 2014-08-19 01:00:00 [createdBy.expiresDate] => 2013-05-26 00:00:00 [createdBy.neverExpires] => 1 [createdBy.isAdmin] => 0 [createdBy.disabled] => 0 [createdBy.accessList] => [createdBy._filename] => [createdBy._link] => javascript:alert('Set Detail Page Url for this section in: Admin > Section Editors > Viewer Urls') ) [2] => Array ( [_filename] => Reltech-SUNSOL-SS-Series-Pumps [_link] => /productsDetail.php?Reltech-SUNSOL-SS-Series-Pumps-12 [_tableName] => products_listing [category] => 3 [category:label] => Pool and Spa Pumps [content] => <p>Available in 4 sizes from 0.5 to 1.25hp, Reltech's SUNSOL SS Series pumps are for the budget savy buyer.                                                                                     The SS Series incorporate the same wet end technology as the PR Series, however, utilise a more cost                                                                                       effective electric motor. They are therefore inherently quiet and ideal for everyday medium head applications,                                                                                 commonly found in small to medium sized pools.</p> <p>Australian made with a full 2 Year warranty.</p> [createdByUserNum] => 2 [createdDate] => 2014-08-13 10:05:12 [dragSortOrder] => 1407924312 [hidden] => 0 [hidden:text] => No [num] => 12 [price] => [title] => Reltech SUNSOL SS Series Pumps [updatedByUserNum] => 2 [updatedDate] => 2014-08-13 10:07:22 [image_s] => Array ( [0] => Array ( [num] => 144 [order] => 1 [createdTime] => 2014-08-13 10:04:37 [tableName] => products_listing [fieldName] => image_s [recordNum] => 12 [preSaveTempId] => [filePath] => /home/freestyl/public_html/cmsAdmin/uploads/ss-series2_001.jpg [urlPath] => /cmsAdmin/uploads/ss-series2_001.jpg [width] => 181 [height] => 127 [thumbFilePath] => /home/freestyl/public_html/cmsAdmin/uploads/thumb/ss-series2_001.jpg [thumbUrlPath] => /cmsAdmin/uploads/thumb/ss-series2_001.jpg [thumbWidth] => 150 [thumbHeight] => 106 [thumbFilePath2] => [thumbUrlPath2] => [thumbWidth2] => 0 [thumbHeight2] => 0 [thumbFilePath3] => [thumbUrlPath3] => [thumbWidth3] => 0 [thumbHeight3] => 0 [thumbFilePath4] => [thumbUrlPath4] => [thumbWidth4] => 0 [thumbHeight4] => 0 [info1] => Reltech SUNSOL SS Series Pump [info2] => [info3] => [info4] => [info5] => [_tableName] => uploads [filename] => ss-series2_001.jpg [extension] => jpg [isImage] => 1 [hasThumbnail] => 1 ) ) [createdBy.num] => 2 [createdBy.createdDate] => 2013-05-26 05:37:53 [createdBy.createdByUserNum] => 1 [createdBy.updatedDate] => 2014-03-11 05:04:27 [createdBy.updatedByUserNum] => 1 [createdBy.fullname] => Chris Jones [createdBy.email] => enq@cnmlhk.com [createdBy.username] => cnmlhk [createdBy.lastLoginDate] => 2014-08-19 01:00:00 [createdBy.expiresDate] => 2013-05-26 00:00:00 [createdBy.neverExpires] => 1 [createdBy.isAdmin] => 0 [createdBy.disabled] => 0 [createdBy.accessList] => [createdBy._filename] => [createdBy._link] => javascript:alert('Set Detail Page Url for this section in: Admin > Section Editors > Viewer Urls') ) [3] => Array ( [_filename] => Reltech-Fibreglass-Sand-Filters. [_link] => /productsDetail.php?Reltech-Fibreglass-Sand-Filters.-11 [_tableName] => products_listing [category] => 5 [category:label] => Pool Filters [content] => <p>RELTECH PREMIUM PF Series Fibreglass Sand Filters</p> <p><br />Available in 25, 28, 32 and 36 inch diameters, Reltech's PREMIUM PF Series fibreglass sand filters are built for the toughest applications.                         Suitable for use with Reltech's Ecoflo Glass media, Zelbrite or standard filter sand, the PF Series guarantees crystal clear water with minimal                         ongoing maintenance. All PF Series filter multi-port valves incorporate a large "palm-action" handle for silky smooth, easy operation.</p> <p>Constructed with a spun fibreglass exterior and a thermoplas interior, the Reltech PF series offers twice the strength than that  of most  other                     filters on the market</p> [createdByUserNum] => 2 [createdDate] => 2014-08-12 13:27:37 [dragSortOrder] => 1407850057 [hidden] => 0 [hidden:text] => No [num] => 11 [price] => 658 [title] => Reltech Fibreglass Sand Filters. [updatedByUserNum] => 2 [updatedDate] => 2014-08-13 10:00:14 [image_s] => Array ( [0] => Array ( [num] => 143 [order] => 1 [createdTime] => 2014-08-13 10:00:04 [tableName] => products_listing [fieldName] => image_s [recordNum] => 11 [preSaveTempId] => [filePath] => /home/freestyl/public_html/cmsAdmin/uploads/sandfilter2.jpg [urlPath] => /cmsAdmin/uploads/sandfilter2.jpg [width] => 481 [height] => 800 [thumbFilePath] => /home/freestyl/public_html/cmsAdmin/uploads/thumb/sandfilter2.jpg [thumbUrlPath] => /cmsAdmin/uploads/thumb/sandfilter2.jpg [thumbWidth] => 91 [thumbHeight] => 150 [thumbFilePath2] => [thumbUrlPath2] => [thumbWidth2] => 0 [thumbHeight2] => 0 [thumbFilePath3] => [thumbUrlPath3] => [thumbWidth3] => 0 [thumbHeight3] => 0 [thumbFilePath4] => [thumbUrlPath4] => [thumbWidth4] => 0 [thumbHeight4] => 0 [info1] => Reltech PF Series Fibreglass Sand filters [info2] => [info3] => [info4] => [info5] => [_tableName] => uploads [filename] => sandfilter2.jpg [extension] => jpg [isImage] => 1 [hasThumbnail] => 1 ) ) [createdBy.num] => 2 [createdBy.createdDate] => 2013-05-26 05:37:53 [createdBy.createdByUserNum] => 1 [createdBy.updatedDate] => 2014-03-11 05:04:27 [createdBy.updatedByUserNum] => 1 [createdBy.fullname] => Chris Jones [createdBy.email] => enq@cnmlhk.com [createdBy.username] => cnmlhk [createdBy.lastLoginDate] => 2014-08-19 01:00:00 [createdBy.expiresDate] => 2013-05-26 00:00:00 [createdBy.neverExpires] => 1 [createdBy.isAdmin] => 0 [createdBy.disabled] => 0 [createdBy.accessList] => [createdBy._filename] => [createdBy._link] => javascript:alert('Set Detail Page Url for this section in: Admin > Section Editors > Viewer Urls') ) [4] => Array ( [_filename] => Premium-PR-Series-Pool-Pumps [_link] => /productsDetail.php?Premium-PR-Series-Pool-Pumps-10 [_tableName] => products_listing [category] => 3 [category:label] => Pool and Spa Pumps [content] => <p>Reltech's PREMIUM PR Series pumps are for decerning buyers that don't want to compromise.</p> <p>Offering high performance and low noise levels, PR Series pumps have been over designed for unbeatable reliability</p> <p>Offering Available in 6 sizes from 0.5 to 2.0hp, to cater for all requirements</p> <p>Australian Made and the only pump on the market that backs its claims with a full 3 year warranty.</p> [createdByUserNum] => 2 [createdDate] => 2014-08-12 13:12:52 [dragSortOrder] => 1407849172 [hidden] => 0 [hidden:text] => No [num] => 10 [price] => 494.53 [title] => Premium PR Series Pool Pumps [updatedByUserNum] => 2 [updatedDate] => 2014-08-13 10:50:49 [image_s] => Array ( [0] => Array ( [num] => 141 [order] => 1 [createdTime] => 2014-08-12 13:12:26 [tableName] => products_listing [fieldName] => image_s [recordNum] => 10 [preSaveTempId] => [filePath] => /home/freestyl/public_html/cmsAdmin/uploads/pr200-pump-low-res2.jpg [urlPath] => /cmsAdmin/uploads/pr200-pump-low-res2.jpg [width] => 181 [height] => 127 [thumbFilePath] => /home/freestyl/public_html/cmsAdmin/uploads/thumb/pr200-pump-low-res2.jpg [thumbUrlPath] => /cmsAdmin/uploads/thumb/pr200-pump-low-res2.jpg [thumbWidth] => 150 [thumbHeight] => 106 [thumbFilePath2] => [thumbUrlPath2] => [thumbWidth2] => 0 [thumbHeight2] => 0 [thumbFilePath3] => [thumbUrlPath3] => [thumbWidth3] => 0 [thumbHeight3] => 0 [thumbFilePath4] => [thumbUrlPath4] => [thumbWidth4] => 0 [thumbHeight4] => 0 [info1] => Reltech Premium PR series pumps [info2] => [info3] => [info4] => [info5] => [_tableName] => uploads [filename] => pr200-pump-low-res2.jpg [extension] => jpg [isImage] => 1 [hasThumbnail] => 1 ) ) [createdBy.num] => 2 [createdBy.createdDate] => 2013-05-26 05:37:53 [createdBy.createdByUserNum] => 1 [createdBy.updatedDate] => 2014-03-11 05:04:27 [createdBy.updatedByUserNum] => 1 [createdBy.fullname] => Chris Jones [createdBy.email] => enq@cnmlhk.com [createdBy.username] => cnmlhk [createdBy.lastLoginDate] => 2014-08-19 01:00:00 [createdBy.expiresDate] => 2013-05-26 00:00:00 [createdBy.neverExpires] => 1 [createdBy.isAdmin] => 0 [createdBy.disabled] => 0 [createdBy.accessList] => [createdBy._filename] => [createdBy._link] => javascript:alert('Set Detail Page Url for this section in: Admin > Section Editors > Viewer Urls') ) [5] => Array ( [_filename] => ECO-FLO-V3-Energy-Efficient-Pump [_link] => /productsDetail.php?ECO-FLO-V3-Energy-Efficient-Pump-9 [_tableName] => products_listing [category] => 3 [category:label] => Pool and Spa Pumps [content] => <p>Fully variable 3 speed pump.</p> <p>For the ultimate in energy eficiency, Reltech's ECOFLO V3 PRO series pump is the quiet achiever.</p> <p>A unique blend of efficiency and ultra quiet performance, the ECOFLO V3, can reduce your pools</p> <p>electricity running costs and carbon emmissions by up to 70%, without compromising performance </p> <p>when you need it.</p> <p>Made in Australia, the only pump on the market that backs itself with a full 3 year warranty</p> <p><a href="/cmsAdmin/uploads/ecoflo-v3-pro-brochure.pdf" title="Eco flo Brochure" target="_blank">Brochure</a></p> [createdByUserNum] => 2 [createdDate] => 2014-08-12 13:06:37 [dragSortOrder] => 1407848797 [hidden] => 0 [hidden:text] => No [num] => 9 [price] => 920 [title] => ECO FLO V3 Energy Efficient Pump [updatedByUserNum] => 2 [updatedDate] => 2014-08-19 00:58:49 [image_s] => Array ( [0] => Array ( [num] => 140 [order] => 1 [createdTime] => 2014-08-12 13:06:03 [tableName] => products_listing [fieldName] => image_s [recordNum] => 9 [preSaveTempId] => [filePath] => /home/freestyl/public_html/cmsAdmin/uploads/reltech-eco-pump.jpg [urlPath] => /cmsAdmin/uploads/reltech-eco-pump.jpg [width] => 238 [height] => 165 [thumbFilePath] => /home/freestyl/public_html/cmsAdmin/uploads/thumb/reltech-eco-pump.jpg [thumbUrlPath] => /cmsAdmin/uploads/thumb/reltech-eco-pump.jpg [thumbWidth] => 150 [thumbHeight] => 104 [thumbFilePath2] => [thumbUrlPath2] => [thumbWidth2] => 0 [thumbHeight2] => 0 [thumbFilePath3] => [thumbUrlPath3] => [thumbWidth3] => 0 [thumbHeight3] => 0 [thumbFilePath4] => [thumbUrlPath4] => [thumbWidth4] => 0 [thumbHeight4] => 0 [info1] => Reltech ECOFLO V3 Energy Efficient Pump [info2] => [info3] => [info4] => [info5] => [_tableName] => uploads [filename] => reltech-eco-pump.jpg [extension] => jpg [isImage] => 1 [hasThumbnail] => 1 ) ) [createdBy.num] => 2 [createdBy.createdDate] => 2013-05-26 05:37:53 [createdBy.createdByUserNum] => 1 [createdBy.updatedDate] => 2014-03-11 05:04:27 [createdBy.updatedByUserNum] => 1 [createdBy.fullname] => Chris Jones [createdBy.email] => enq@cnmlhk.com [createdBy.username] => cnmlhk [createdBy.lastLoginDate] => 2014-08-19 01:00:00 [createdBy.expiresDate] => 2013-05-26 00:00:00 [createdBy.neverExpires] => 1 [createdBy.isAdmin] => 0 [createdBy.disabled] => 0 [createdBy.accessList] => [createdBy._filename] => [createdBy._link] => javascript:alert('Set Detail Page Url for this section in: Admin > Section Editors > Viewer Urls') ) [6] => Array ( [_filename] => Dolphin-Swash-CL [_link] => /productsDetail.php?Dolphin-Swash-CL-8 [_tableName] => products_listing [category] => 2 [category:label] => Pool Cleaners [content] => <p>Dolphin Swash CL</p> <p>Comes with storage/transport caddy</p> <p>Cleans and Scrubs including a waterline scrubbing feature</p> <p>Floor and cove areas cover</p> <p>Systematic and intelligent scanning for optimum coverage</p> <p>Suitable for pools up to 12meters</p> <p>24 month warranty.</p> <p></p> [createdByUserNum] => 2 [createdDate] => 2014-08-12 12:01:26 [dragSortOrder] => 1407844886 [hidden] => 0 [hidden:text] => No [num] => 8 [price] => 1300 [title] => Dolphin Swash CL [updatedByUserNum] => 2 [updatedDate] => 2014-08-12 12:01:26 [image_s] => Array ( [0] => Array ( [num] => 138 [order] => 1 [createdTime] => 2014-08-12 12:01:05 [tableName] => products_listing [fieldName] => image_s [recordNum] => 8 [preSaveTempId] => [filePath] => /home/freestyl/public_html/cmsAdmin/uploads/swash-cl_126.jpg [urlPath] => /cmsAdmin/uploads/swash-cl_126.jpg [width] => 225 [height] => 225 [thumbFilePath] => /home/freestyl/public_html/cmsAdmin/uploads/thumb/swash-cl_126.jpg [thumbUrlPath] => /cmsAdmin/uploads/thumb/swash-cl_126.jpg [thumbWidth] => 150 [thumbHeight] => 150 [thumbFilePath2] => [thumbUrlPath2] => [thumbWidth2] => 0 [thumbHeight2] => 0 [thumbFilePath3] => [thumbUrlPath3] => [thumbWidth3] => 0 [thumbHeight3] => 0 [thumbFilePath4] => [thumbUrlPath4] => [thumbWidth4] => 0 [thumbHeight4] => 0 [info1] => Maytronics Dolphin Swash CL [info2] => [info3] => [info4] => [info5] => [_tableName] => uploads [filename] => swash-cl_126.jpg [extension] => jpg [isImage] => 1 [hasThumbnail] => 1 ) ) [createdBy.num] => 2 [createdBy.createdDate] => 2013-05-26 05:37:53 [createdBy.createdByUserNum] => 1 [createdBy.updatedDate] => 2014-03-11 05:04:27 [createdBy.updatedByUserNum] => 1 [createdBy.fullname] => Chris Jones [createdBy.email] => enq@cnmlhk.com [createdBy.username] => cnmlhk [createdBy.lastLoginDate] => 2014-08-19 01:00:00 [createdBy.expiresDate] => 2013-05-26 00:00:00 [createdBy.neverExpires] => 1 [createdBy.isAdmin] => 0 [createdBy.disabled] => 0 [createdBy.accessList] => [createdBy._filename] => [createdBy._link] => javascript:alert('Set Detail Page Url for this section in: Admin > Section Editors > Viewer Urls') ) [7] => Array ( [_filename] => Dolphin-Swash-Robotic-Cleaner [_link] => /productsDetail.php?Dolphin-Swash-Robotic-Cleaner-5 [_tableName] => products_listing [category] => 2 [category:label] => Pool Cleaners [content] => <p>Maytronics Dolphin Swash</p> <p>Cleans and scrubs</p> <p>Floor and Cove area covered</p> <p>Systematic and intelligent scanning for optimum coverage</p> <p>Suitable for pools up to 12 meters</p> <p>12 Months Warranty</p> <p></p> [createdByUserNum] => 1 [createdDate] => 2014-04-07 22:37:45 [dragSortOrder] => 1396910265 [hidden] => 0 [hidden:text] => No [num] => 5 [price] => 1012 [title] => Dolphin Swash Robotic Cleaner [updatedByUserNum] => 2 [updatedDate] => 2014-08-12 11:46:32 [image_s] => Array ( [0] => Array ( [num] => 137 [order] => 1 [createdTime] => 2014-08-12 11:55:20 [tableName] => products_listing [fieldName] => image_s [recordNum] => 5 [preSaveTempId] => [filePath] => /home/freestyl/public_html/cmsAdmin/uploads/dolphin-swash.jpg [urlPath] => /cmsAdmin/uploads/dolphin-swash.jpg [width] => 251 [height] => 201 [thumbFilePath] => /home/freestyl/public_html/cmsAdmin/uploads/thumb/dolphin-swash.jpg [thumbUrlPath] => /cmsAdmin/uploads/thumb/dolphin-swash.jpg [thumbWidth] => 150 [thumbHeight] => 121 [thumbFilePath2] => [thumbUrlPath2] => [thumbWidth2] => 0 [thumbHeight2] => 0 [thumbFilePath3] => [thumbUrlPath3] => [thumbWidth3] => 0 [thumbHeight3] => 0 [thumbFilePath4] => [thumbUrlPath4] => [thumbWidth4] => 0 [thumbHeight4] => 0 [info1] => Maytronics Dolphin Swash [info2] => [info3] => [info4] => [info5] => [_tableName] => uploads [filename] => dolphin-swash.jpg [extension] => jpg [isImage] => 1 [hasThumbnail] => 1 ) ) [createdBy.num] => 1 [createdBy.createdDate] => 2013-05-26 00:39:24 [createdBy.createdByUserNum] => 0 [createdBy.updatedDate] => 2013-05-26 00:39:24 [createdBy.updatedByUserNum] => 0 [createdBy.fullname] => Tim Forrest [createdBy.email] => tim@toledoh.com.au [createdBy.username] => toledoh [createdBy.lastLoginDate] => 2014-09-12 01:07:02 [createdBy.expiresDate] => 0000-00-00 00:00:00 [createdBy.neverExpires] => 1 [createdBy.isAdmin] => 1 [createdBy.disabled] => 0 [createdBy.accessList] => [createdBy._filename] => [createdBy._link] => javascript:alert('Set Detail Page Url for this section in: Admin > Section Editors > Viewer Urls') ) [8] => Array ( [_filename] => Evolution-Saltwater-Pool-Chlorinator [_link] => /productsDetail.php?Evolution-Saltwater-Pool-Chlorinator-2 [_tableName] => products_listing [category] => 1 [category:label] => Chlorinators and Chemical Controllers [content] => <p>Made in Australia and designed for Australian conditions .  The only chlorinator on the market that backs its promise to perform with a full 3 year warranty</p> <p>Evolutions' reverse polarity chlorination cells are self cleaning to save you the chore of cleaning cell plates.  Set and forget</p> [createdByUserNum] => 2 [createdDate] => 2014-03-28 06:26:32 [dragSortOrder] => 1395987992 [hidden] => 0 [hidden:text] => No [num] => 2 [price] => 890 [title] => Evolution Saltwater Pool Chlorinator [updatedByUserNum] => 2 [updatedDate] => 2014-08-12 12:33:57 [image_s] => Array ( [0] => Array ( [num] => 123 [order] => 1 [createdTime] => 2014-03-28 06:25:04 [tableName] => products_listing [fieldName] => image_s [recordNum] => 2 [preSaveTempId] => [filePath] => /home/freestyl/public_html/cmsAdmin/uploads/evochlor_002.jpg [urlPath] => /cmsAdmin/uploads/evochlor_002.jpg [width] => 600 [height] => 296 [thumbFilePath] => /home/freestyl/public_html/cmsAdmin/uploads/thumb/evochlor_002.jpg [thumbUrlPath] => /cmsAdmin/uploads/thumb/evochlor_002.jpg [thumbWidth] => 150 [thumbHeight] => 74 [thumbFilePath2] => [thumbUrlPath2] => [thumbWidth2] => 0 [thumbHeight2] => 0 [thumbFilePath3] => [thumbUrlPath3] => [thumbWidth3] => 0 [thumbHeight3] => 0 [thumbFilePath4] => [thumbUrlPath4] => [thumbWidth4] => 0 [thumbHeight4] => 0 [info1] => Evo [info2] => Test 1 [info3] => [info4] => [info5] => [_tableName] => uploads [filename] => evochlor_002.jpg [extension] => jpg [isImage] => 1 [hasThumbnail] => 1 ) ) [createdBy.num] => 2 [createdBy.createdDate] => 2013-05-26 05:37:53 [createdBy.createdByUserNum] => 1 [createdBy.updatedDate] => 2014-03-11 05:04:27 [createdBy.updatedByUserNum] => 1 [createdBy.fullname] => Chris Jones [createdBy.email] => enq@cnmlhk.com [createdBy.username] => cnmlhk [createdBy.lastLoginDate] => 2014-08-19 01:00:00 [createdBy.expiresDate] => 2013-05-26 00:00:00 [createdBy.neverExpires] => 1 [createdBy.isAdmin] => 0 [createdBy.disabled] => 0 [createdBy.accessList] => [createdBy._filename] => [createdBy._link] => javascript:alert('Set Detail Page Url for this section in: Admin > Section Editors > Viewer Urls') ) )

Cheers,

Tim (toledoh.com.au)

Hey Tim,

I had another look at my code, and I'd missed adding echo for the category title field:


// get the list of categories as array wherein the array key is the category value, and array value is the category label
// $productCategoriesValuesToLabels will be used for the left category list
$productCategoriesValuesToLabels = array_combine(array_pluck($products_listingRecords, 'category'), array_pluck($products_listingRecords, 'category:label'));

// $productsListsRecords will be used for the right sub-list
$productsListsRecords = array();
if (@$_REQUEST['category']){
  $productsListsRecords = array_groupBy($products_listingRecords, 'category', true);
  $productsListsRecords = @$productsListsRecords[$_REQUEST['category']];
  if($productsListsRecords){
    foreach($productsListsRecords as $record){
      $categoryTitle = "Category - ".$record['category:label']; 
    }
  }
}else{
  $productsListsRecords = $products_listingRecords;
}

?><!DOCTYPE html>
<html>
<head> 
<title>A title <?php if(@$categoryTitle){ echo $categoryTitle; } ?></title>

Once this is added, you should find the title will display.

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com