Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrossl committed Aug 3, 2021
0 parents commit a317758
Show file tree
Hide file tree
Showing 10 changed files with 1,364 additions and 0 deletions.
Binary file added .crafter/screenshots/directions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .crafter/screenshots/place.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .crafter/screenshots/streetview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions authoring/content-types/component/googlemaps/config.xml
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 authoring/content-types/component/googlemaps/controller.groovy
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();
Loading

0 comments on commit a317758

Please sign in to comment.