Breadcrumb Problem

4 posts by 2 authors in: Forums > CMS Builder
Last Post: September 4, 2015   (RSS)

By Daryl - September 1, 2015

Hi northernpenguin,

Is the $categoryRecord in line 2 of breadcrumb.inc a multiple menu records or just a single record of a menu?

$categoriesRecordsByNum = array_combine(array_pluck($categoryRecord, "num"), $categoryRecord);

Base on your code, I'm assuming that $categoriesRecordsByNum should be a multiple menu records with the record num as the array keys. So can you try to replace the line 2 of  breadcrumb.inc with:

$categoriesRecordsByNum = array_combine(array_pluck($menuRecords, "num"), $menuRecords);

Or with using array_groupBy function:

$categoriesRecordsByNum = array_groupBy($menuRecords, 'num');

Please let us know if that works.

Thanks,

Daryl Maximo
PHP Programmer - interactivetools.com

By northernpenguin - September 1, 2015

Daryl:  Yes, it is a multiple menu record.  I tried both suggestions, and both only list the top level menu, Home.

--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke

By Daryl - September 4, 2015

Hi Ragi,

Your code seems like it is for displaying only the top level menu or the selected parent menu.

Do you mind if I take a closer look by submitting a second level support request?

You can find the form here: https://www.interactivetools.com/support/email_support_form.php

Thanks,

Daryl Maximo
PHP Programmer - interactivetools.com