We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25357
    • 92 Posts
    Working with a client using 1.0.0 (I know, needs upgrade.)

    Task: On the locations page, there are four territories, call them N/S/E/W, folded up in an accordion heading. Create a single Google Map below the folded up headings that shows markers for **all** locations.

    Each section grabs the territories using Ditto (Surrounding HTML removed for demonstration):

    [[Ditto? &tpl=`location-preview` &startID=`44` &sortDir=`ASC`]] (N)
    [[Ditto? &tpl=`location-preview` &startID=`45` &sortDir=`ASC`]] (S)
    [[Ditto? &tpl=`location-preview` &startID=`46` &sortDir=`ASC`]] (E)
    [[Ditto? &tpl=`location-preview` &startID=`47` &sortDir=`ASC`]] (W)

    I have found this snippet

    Which appears to support multiple addresses. The question, I think, is how to I get the addresses from Ditto to the address fields in the Google Map Snippet?

    Or is there a better snippet? Done some searching . . . only thung that comes up is a sample for Yahoo maps, they specifically want Google Maps.

    I also found this one

    that requires geocoordinates, but I already have the addresses in hand and don’t want to chase down coordinates for every address. Going to start banging something together to see if I can get ti to fly, but would appreciate pointers from anyone who’s done it before.