mhirdes / go_maps_ext

Google Maps Extension for TYPO3
MIT License
21 stars 31 forks source link

Filter for Categories #23

Closed DaniaMeier closed 6 years ago

DaniaMeier commented 7 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.

mhirdes commented 7 years ago

Hey. Thanks a lot for your feedback and report. If you create a Pull Request, I could intregrate your changes.

mhirdes commented 6 years ago

Thank you for your effort. I add the changes from your pull request.