Created
March 30, 2013 06:25
-
-
Save gordonbanderson/5275616 to your computer and use it in GitHub Desktop.
Adding an editable map to a Silverstripe DataObject or Page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Object::add_extension('PageWithMap', 'MapExtension'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PageWithMap extends DemoPage { | |
} | |
class PageWithMap_Controller extends DemoPage_Controller { | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% require css(weboftalent-mappable-demo/css/mapdemo.css) %> | |
<h1>$Title</h1> | |
$Content | |
$BasicMap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Example popup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment