DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
Tutorial 10: Using TypoScript (Gallery with google map)¶
The aim of this tutorial is to show how to use TypoScript into an extension. In this example, we want to display a gallery of pictures.
We will use three views in only one form for the sake of the simplicity (see previous examples to create an admin form):
- The “List” view to display small images.
- The “Edit” view to enter the picture, its title, a description and the address corresponding to the picture.
- The “Single” view with a special organization. The picture is on the left, then the title and the description is displayed at the right of the picture and, finally, the google map, where the marker is defined by the address, goes to the right of the description. By clicking on the image, it should be displayed in its original size.
Several authenticated users may use the plugin. Each user can modify or delete the records he/she has created.
- Download this example from the TER (sav_library_example10) and install it.
- Download also the extension “wec_map” from the TER, read the documentation, get your google map API key and install it.