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.

Administratormanual

Target group: Administrators

Installation

Import the extension from TER (TYPO3 Extension Repository) like any other extension. Create some pages as shown below.

Pages for myleaflet

On the page ‘Ajax Map’ install plugin MyLeaflet (Map),

On page ‘myleaflet’ or on your root page insert ‘Typoscript Include static’ (from extension) MyLeaflet (myleaflet). With the constant editor insert the desired settings of the extension like storage Pid, your page ID’s, jQuery options, path to templates etc.

The data of tt_address and sys_categories is stored in page Data. Insert in the constant editor the correct “Default storage PID” of the tt_address records.

Then insert at least one sys_category in the page Data. Now insert some tt_address data records with latitude and longitude values and assign them to sys_categories. The extension did not fetch the coordinates by itself like the mymap extension.

When everything is ok - test it…

Include Static

Inserting data

In TYPO3 list module select page Data. First insert some sys_categories. Then you can insert some tt_address data records. You have not to insert the coordinates. If you don’t insert some icon, the extension uses a default icon for the POI’s.

When everything is done you can start a search in frontend.

Reference

plugin.tx_myleaflet.view

templateRootPath

Property

templateRootPath

Data type

string

Description

path to templates

Default

EXT:myleaflet/Resources/Private/Templates/

partialRootPath

Property

partialRootPath

Data type

string

Description

path to partials

Default

EXT:myleaflet/Resources/Private/Partials/

layoutRootPath

Property

layoutRootPath

Data type

string

Description

path to layouts

Default

EXT:myleaflet/Resources/Private/Layouts/

plugin.tx_myleaflet.settings

detailsPageId

Property

detailsPageId

Data type

int

Description

Id of the details page

Default

singleViewUid

Property

singleViewUid

Data type

int

Description

Uid of the loaction record to be shown with the single view plugin.

Default

1

resultLimit

Property

resultLimit

Data type

int

Description

Limit the result to n records

Default

300

initialMapCoordinates

Property

initialMapCoordintes

Data type

string

Description

Initial map coordinates [latitude,longitude]

Default

48,8

Known problems

FAQ

Custom templates and files

You can use your own template and CSS file or other jQuery library - just go to the TYPO3 constants editor and change the values for your needs.