Skip to content

Commit

Permalink
Possibility to add a custom API key via Settings.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Irmscher committed Aug 5, 2016
1 parent 938236f commit 27eb524
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,13 @@ A Neos CMS package to add Google Maps as node
Add the package in your site package composer.json

`"require": {
"obisconcept/neos-gmaps": "~1.0.0"
"obisconcept/neos-gmaps": "~1.0"
}`

## Usage

Add your API key to the `Settings.yaml` of your site package

`ObisConcept:
NeosGmaps:
apiKey: '...'`
2 changes: 1 addition & 1 deletion Resources/Private/TypoScript/ProtoTypes/Page.ts2
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ prototype(TYPO3.Neos:Page) {
tagName = 'script'
attributes {
type = 'text/javascript'
src = 'https://maps.googleapis.com/maps/api/js?key=AIzaSyCRl_zHBMgffWGCK06upoVEmqnTWdX-uvA'
src = ${'https://maps.googleapis.com/maps/api/js?key='+Configuration.settings('ObisConcept.NeosGmaps.apiKey')}
}
}

Expand Down

0 comments on commit 27eb524

Please sign in to comment.