COMBO Page... kinda

5 posts by 2 authors in: Forums > CMS Builder
Last Post: March 25, 2014   (RSS)

By Toledoh - March 19, 2014

Hey Guys,


I would like to produce a page similar to the combo page layout that generated via the code generator, however rather than a "title" as the side menu, and the "Detail record" to the right, I would like a "Category" to the left and a sub-list to the right.

ie.  I have a table of records, each record has a "title", "category" (which is a list) and other details.  Click on a category, and get all the items with that category selected.  And show the selected category via the "<?php if ($isSelected) { print "<b>"; } ?>".

Is that easily achievable?

Cheers,

Tim (toledoh.com.au)

By Toledoh - March 24, 2014

Thanks Daryl - but I'm not getting anything displayed for the right sub list...

Cheers,

Tim (toledoh.com.au)

By Daryl - March 25, 2014

Hi Tim,

Can you please try to update the block of codes below and let me know if that fixes it? The changes are colored blue:

// $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']];

Thanks,

Daryl Maximo
PHP Programmer - interactivetools.com

By Toledoh - March 25, 2014

Perfect - thanks Daryl!

Cheers,

Tim (toledoh.com.au)