10993 Posts in 2727 Topics by 1818 members
|Go to End|
13 August 2013 at 4:52am
I've been using the Locations module on a clients website with great success but recently they surpassed 26(a-z) locations causing
the map to crash (disappear).
I've driven myself crazy trying to figure out a way to use numbers instead of letters but have not been able to figure it out.
Does anyone have any idea of how this problem of being limited to 26 locations could be fixed?
Any help would be very much appreciated.
13 August 2013 at 7:11am
I Think you should look at the function ón Line 64 of https://github.com/webair/thinc.silverstripe.locations/blob/master/code/PoiLocationPage.php
$poi->Label = chr(65 + $i);
$poi->Label = $i;
Should give you a number as label.
Note that you may have to change Line 23 of
As that file might not exist.
Hope it helps
14 August 2013 at 5:01am
Dude you are a legend!!! Thank you so much!!
I thought it might have had something to do with that line but I couldn't figure out what the chr(65+$i) did or meant.
My programming skills aren't the greatest (obviously) so thanks again
|Go to Top|