Routing

EXT:maps2 does not have a list and detail view, so there is no need to configure any route enhancers. But, it is possible to link to a POI from foreign extensions. That is possible by defining the PoiCollection UID as GET parameter tx_maps2_maps2[poiCollectionUid] in URI.

For this case you can use following configuration.

Example Configuration

routeEnhancers:
  Maps2Plugin:
    type: Extbase
    extension: Maps2
    plugin: Maps2
    routes:
      -
        routePath: '/poi/{poiCollectionUid}'
        _controller: 'PoiCollection::show'
    defaultController: 'PoiCollection::show'
    aspects:
      poiCollectionUid:
        type: PersistedAliasMapper
        tableName: 'tx_maps2_domain_model_poicollection'
        routeFieldName: 'uid'
Copied!