Closed DaniaMeier closed 6 years ago
First of all, thanks for you extension. I really appreciate all the work.
I have suggestion for the displaying of the categories checkboxes. As I need them to be grouped by their parent categories I changed line 133 in MapController.php from
$categoriesArray[$addrCat->getUid()] = $addrCat->getTitle();
to
$categoriesArray[$addrCat->getUid()]['title'] = $addrCat->getTitle();
$categoriesArray[$addrCat->getUid()]['uid'] = $addrCat->getUid();
$categoriesArray[$addrCat->getUid()]['parent'] = $addrCat->getParent();
In order to get an Array, including the parent category, so I can use the groupedFor fluid viewhelper.
<f:groupedFor each="{categories}" as="categoriesByParent" groupBy="parent" groupKey="parent">
// do something
</f:groupedFor>
I would like to do the same for the displaying of the addresses, but haven't gotten around to do it yet.
Hey. Thanks a lot for your feedback and report. If you create a Pull Request, I could intregrate your changes.
Thank you for your effort. I add the changes from your pull request.
First of all, thanks for you extension. I really appreciate all the work.
I have suggestion for the displaying of the categories checkboxes. As I need them to be grouped by their parent categories I changed line 133 in MapController.php from
$categoriesArray[$addrCat->getUid()] = $addrCat->getTitle();
to
$categoriesArray[$addrCat->getUid()]['title'] = $addrCat->getTitle();
$categoriesArray[$addrCat->getUid()]['uid'] = $addrCat->getUid();
$categoriesArray[$addrCat->getUid()]['parent'] = $addrCat->getParent();
In order to get an Array, including the parent category, so I can use the groupedFor fluid viewhelper.
<f:groupedFor each="{categories}" as="categoriesByParent" groupBy="parent" groupKey="parent">
// do something
</f:groupedFor>
I would like to do the same for the displaying of the addresses, but haven't gotten around to do it yet.