1. How can I make the form for adding stores (or in my case locations) available in the front end? Perhaps formit2db, or is there a better way of doing it?
[[!FormIt? &hooks=`formit2db` &prefix=`modx_` &tablename=`storelocator_stores` &packagename=`storelocator` &classname=`slStore` ]] <form action="[[~[[*id]]]]" method="post" class="form"> <input type="hidden" name="resource_id" id="resource_id" value="6" /> Description: <input type="text" name="description" id="description" value="[[!+fi.description]]" /> <br> Latitude: <input type="text" name="latitude" id="latitude" value="[[!+fi.latitude]]" /> <br> Longitude: <input type="text" name="longitude" id="longitude" value="[[!+fi.longitude]]" /> <input type="submit" value="Submit" /> </form>
On modx 2.4.0 i can't scroll the list of store on back end. You found e solution ?I too am looking for the cause/solution for this, it also affects other CMP's. The content is there we just can't scroll to it anymore and the developer isn't supporting this extra any longer. I'd be willing to contribute to keep this extra relevant.
#storelocator-content { max-height: 800px !important; overflow: scroll; }
[line 44] $modx->regClientStartupScript('http://maps.googleapis.com/maps/api/js?sensor=false&key=***my-api-key***');