Address entry for listit

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
jongs
New Member
New Member
Posts: 7
Joined: Wed Jun 08, 2011 10:06 pm

Address entry for listit

Post by jongs »

I am using listit2 to display locations on Calguys Google Maps using text fields to enter longitude and latitude entries for the map points.

I need to add points by entering the address of the location instead of the long lat.

Could I add javascript to the input page of the module or is there a module that could combine?

Any thoughts (solutions!) much appreciated.
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: Address entry for listit

Post by psy »

Use the 'module_custom' directory method to create your own admin template to override the LI2 default edititem.tpl, eg

module_custom/ListIt2MyInstance/templates/edititem.tpl

You can then put whatever you like in the template.

See: http://docs.cmsmadesimple.org/customizi ... -templates
cb2004
Power Poster
Power Poster
Posts: 317
Joined: Wed Jul 04, 2007 3:39 pm

Re: Address entry for listit

Post by cb2004 »

Download the version of LI2 in Git, it supports this out of the box.
jongs
New Member
New Member
Posts: 7
Joined: Wed Jun 08, 2011 10:06 pm

Re: Address entry for listit

Post by jongs »

First, thank you for the replies. Unfortunately home problem and then illness stopped me from looking at it until now.

I was unable to find or see how listit2 does this out of the box so I took on the template customizing method. I must admit I haven't managed to implement module_custom directory yet but the advice you gave me got me started on customizing the edititem.tpl.

For anyone finding this thread I used the javascript from http://php-ease.com/forms/latitude-long ... inder.html and also edited input.TextInput.tpl to add an id to the input field so the script could update the lat long fields.

It is working fine and when off my sick bed I will move the templates to custom directory to prevent module updates from overwriting the changes.

Thanks again
Post Reply

Return to “Modules/Add-Ons”