Hello Kirby Pros,
I have a list of companies that are organized as subpages.
Every company has a field called »country«.
On the parent page (companies) I loop through the subpages but just show the countries as kind of a mini-navigation.
But when there are 3 companies in Germany and I list all countries I just want to show Germany once, not 3 times.
What I am using now is:
foreach($page->children()->sortBy('country', 'asc') as $partner){ echo $partner->country(); }
Does anyone have a solution for me?
Thanks