Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Maps Module

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1788 Views
  • dio5
    Avatar
    Community Member
    501 Posts

    Maps Module Link to this post

    Is this Maps-module still being developed?

    I noticed I got a few errors:
    - & gives errors where they should be & easily solved in the gmapField.php-file
    - creation of a div inside a span element when used as gmapfield in forms
    - creation of a label of which the target-element doesn't exist when used as gmapfield in forms

    Besides that the Map - Sattelite - Hybrid boxes are having some strange white square boxes below them... Fixed. Was a css-problem.

    Maybe I can read upon general setup guidelines somewhere...?

    Looks like a cool feature otherwise. I'm planning to integrate it in the site I'm (very slowly) working on. Members should be able to locate themselves on a map (more or less like in the forum) and they should be able to submit descriptions of interesting locations, where I'd also like to use google maps. I'm really keen on having a valid xhtml strict site though

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: Maps Module Link to this post

    Hi,

    In order to get rid of the label with a for-attribute for a non-existing field, I changed something
    in the Formfield.php-file around line 247:

    what was:

    $titleBlock = "<label class=\"left\" for=\"{$this->id()}\">$Title</label>";

    is now:

    $titleBlock = $Type == "gmap"? "<span class=\"left\">$Title</span>" : "<label class=\"left\" for=\"{$this->id()}\">$Title</label>";

    It will make upgrading not so easy, but it's valid html now according to my firefox validator....

    1788 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.