-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a317758
Showing
10 changed files
with
1,364 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<content-type name="/component/plugins/org/craftercms/plugin/google/maps/googlemaps" is-wcm-type="true"> | ||
<label>Google Maps</label> | ||
<form>/component/plugins/org/craftercms/plugin/google/maps/googlemaps</form> | ||
<form-path>simple</form-path> | ||
<model-instance-path>NOT-USED-BY-SIMPLE-FORM-ENGINE</model-instance-path> | ||
<file-extension>xml</file-extension> | ||
<content-as-folder>false</content-as-folder> | ||
<previewable>false</previewable> | ||
<quickCreate>false</quickCreate> | ||
<quickCreatePath></quickCreatePath> | ||
<noThumbnail>false</noThumbnail> | ||
<image-thumbnail>thumbnail.png</image-thumbnail> | ||
<paths> | ||
<excludes> | ||
<pattern>^/site/website.*</pattern> | ||
</excludes> | ||
</paths> | ||
</content-type> |
13 changes: 13 additions & 0 deletions
13
authoring/content-types/component/googlemaps/controller.groovy
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import scripts.libs.CommonLifecycleApi; | ||
|
||
def contentLifecycleParams =[:]; | ||
contentLifecycleParams.site = site; | ||
contentLifecycleParams.path = path; | ||
contentLifecycleParams.user = user; | ||
contentLifecycleParams.contentType = contentType; | ||
contentLifecycleParams.contentLifecycleOperation = contentLifecycleOperation; | ||
contentLifecycleParams.contentLoader = contentLoader; | ||
contentLifecycleParams.applicationContext = applicationContext; | ||
|
||
def controller = new CommonLifecycleApi(contentLifecycleParams); | ||
controller.execute(); |
Oops, something went wrong.