Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Irmscher committed Aug 7, 2016
1 parent 9e3448d commit 2fc11c0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
6 changes: 5 additions & 1 deletion Configuration/Settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ TYPO3:
userInterface:
translation:
autoInclude:
'ObisConcept.NeosGmaps': ['NodeTypes/*']
'ObisConcept.NeosGmaps': ['NodeTypes/*']

ObisConcept:
NeosGmaps:
apiKey: ''
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@ A Neos CMS package to add Google Maps as node
## Installation
Add the package in your site package composer.json

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

## Usage

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

`ObisConcept:
```
ObisConcept:
NeosGmaps:
apiKey: '...'`
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='+Configuration.settings('ObisConcept.NeosGmaps.apiKey')}
src = ${'https://maps.googleapis.com/maps/api/js?key='+Configuration.setting('ObisConcept.NeosGmaps.apiKey')}
}
}

Expand Down

0 comments on commit 2fc11c0

Please sign in to comment.