Initial commit - Typo3 11.5.41
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
defined('TYPO3') || die();
|
||||
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
|
||||
/* --------------------------------------------------
|
||||
Extend existing tables
|
||||
-------------------------------------------------- */
|
||||
|
||||
$tempColumns = [
|
||||
'tx_odsosm_marker' => [
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_address_group.tx_odsosm_marker',
|
||||
'config' => [
|
||||
'type' => 'group',
|
||||
'allowed' => 'tx_odsosm_marker',
|
||||
'size' => 1,
|
||||
'minitems' => 0,
|
||||
'maxitems' => 1,
|
||||
'default' => 0,
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
ExtensionManagementUtility::addTCAcolumns('fe_groups', $tempColumns);
|
||||
ExtensionManagementUtility::addToAllTCAtypes('fe_groups', 'tx_odsosm_marker');
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
defined('TYPO3') || die();
|
||||
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
use Bobosch\OdsOsm\Evaluation\LonLat;
|
||||
|
||||
$tempColumns = [
|
||||
'tx_odsosm_lon' => [ // DECIMAL(9,6)
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_lon',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 11,
|
||||
'max' => 11,
|
||||
'checkbox' => '0.000000',
|
||||
'eval' => LonLat::class,
|
||||
'fieldControl' => [
|
||||
'locationMap' => [
|
||||
'renderType' => 'coordinatepickerWizard'
|
||||
]
|
||||
],
|
||||
'default' => 0.000000,
|
||||
]
|
||||
],
|
||||
'tx_odsosm_lat' => [ // DECIMAL(8,6)
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_lat',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 10,
|
||||
'max' => 10,
|
||||
'eval' => LonLat::class,
|
||||
'default' => 0.000000,
|
||||
]
|
||||
],
|
||||
];
|
||||
|
||||
ExtensionManagementUtility::addTCAcolumns('fe_users', $tempColumns);
|
||||
ExtensionManagementUtility::addToAllTCAtypes('fe_users', 'tx_odsosm_lon', '', 'after:country');
|
||||
ExtensionManagementUtility::addFieldsToAllPalettesOfField('fe_users', 'tx_odsosm_lon', 'tx_odsosm_lat');
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
defined('TYPO3') || die();
|
||||
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
|
||||
/* --------------------------------------------------
|
||||
Extend existing tables
|
||||
-------------------------------------------------- */
|
||||
|
||||
$tempColumns = [
|
||||
'tx_odsosm_marker' => [
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_address_group.tx_odsosm_marker',
|
||||
'config' => [
|
||||
'type' => 'group',
|
||||
'allowed' => 'tx_odsosm_marker',
|
||||
'size' => 1,
|
||||
'minitems' => 0,
|
||||
'maxitems' => 1,
|
||||
'default' => 0,
|
||||
]
|
||||
],
|
||||
];
|
||||
|
||||
ExtensionManagementUtility::addTCAcolumns('sys_category', $tempColumns);
|
||||
ExtensionManagementUtility::addToAllTCAtypes('sys_category', 'tx_odsosm_marker');
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
defined('TYPO3') || die();
|
||||
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
|
||||
ExtensionManagementUtility::addStaticFile(
|
||||
'ods_osm',
|
||||
'Configuration/TypoScript/',
|
||||
'Template OpenStreetMap'
|
||||
);
|
||||
|
||||
ExtensionManagementUtility::addStaticFile(
|
||||
'ods_osm',
|
||||
'Configuration/TypoScript/Calendarize/',
|
||||
'Template OpenStreetMap for Calendarize'
|
||||
);
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
defined('TYPO3') || die();
|
||||
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
|
||||
/* --------------------------------------------------
|
||||
Plugin
|
||||
-------------------------------------------------- */
|
||||
|
||||
ExtensionManagementUtility::addPlugin(
|
||||
[
|
||||
'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.list_type_pi1',
|
||||
'ods_osm_pi1'
|
||||
],
|
||||
'list_type',
|
||||
'ods_osm'
|
||||
);
|
||||
|
||||
ExtensionManagementUtility::addPiFlexFormValue(
|
||||
'ods_osm_pi1',
|
||||
'FILE:EXT:ods_osm/Configuration/Flexform/flexform_basic.xml'
|
||||
);
|
||||
|
||||
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['ods_osm_pi1'] = 'pi_flexform';
|
||||
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['ods_osm_pi1'] = 'layout,select_key,pages,recursive';
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
defined('TYPO3') || die();
|
||||
|
||||
use Bobosch\OdsOsm\Evaluation\LonLat;
|
||||
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
|
||||
if (ExtensionManagementUtility::isLoaded('calendarize')) {
|
||||
$tempColumns = [
|
||||
'tx_odsosm_lon' => [ // DECIMAL(9,6)
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_lon',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 11,
|
||||
'max' => 11,
|
||||
'checkbox' => '0.000000',
|
||||
'eval' => LonLat::class,
|
||||
'fieldControl' => [
|
||||
'locationMap' => [
|
||||
'renderType' => 'coordinatepickerWizard'
|
||||
]
|
||||
],
|
||||
'default' => 0.000000,
|
||||
]
|
||||
],
|
||||
'tx_odsosm_lat' => [ // DECIMAL(8,6)
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_lat',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 10,
|
||||
'max' => 10,
|
||||
'eval' => LonLat::class,
|
||||
'default' => 0.000000,
|
||||
]
|
||||
],
|
||||
];
|
||||
|
||||
ExtensionManagementUtility::addTCAcolumns('tx_calendarize_domain_model_event', $tempColumns);
|
||||
ExtensionManagementUtility::addToAllTCAtypes('tx_calendarize_domain_model_event', 'tx_odsosm_lon', '', 'after:location');
|
||||
ExtensionManagementUtility::addFieldsToAllPalettesOfField('tx_calendarize_domain_model_event', 'tx_odsosm_lon', 'tx_odsosm_lat');
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
<?php
|
||||
|
||||
use Bobosch\OdsOsm\Evaluation\LonLat;
|
||||
return [
|
||||
'ctrl' => [
|
||||
'title' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache',
|
||||
'label' => 'zip',
|
||||
'tstamp' => 'tstamp',
|
||||
'crdate' => 'crdate',
|
||||
'default_sortby' => 'ORDER BY zip',
|
||||
'delete' => 'deleted',
|
||||
'rootLevel' => 1,
|
||||
'iconfile' => 'EXT:ods_osm/Resources/Public/Icons/icon_tx_odsosm_geocache.png',
|
||||
],
|
||||
'columns' => [
|
||||
'cache_hit' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache.cache_hit',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 10,
|
||||
'max' => 10,
|
||||
'eval' => '',
|
||||
]
|
||||
],
|
||||
'service_hit' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache.service_hit',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 10,
|
||||
'max' => 10,
|
||||
'eval' => '',
|
||||
]
|
||||
],
|
||||
'search_city' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache.city',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 30,
|
||||
'max' => 255,
|
||||
]
|
||||
],
|
||||
'country' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache.country',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 2,
|
||||
'max' => 2,
|
||||
]
|
||||
],
|
||||
'state' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache.state',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 30,
|
||||
'max' => 255,
|
||||
]
|
||||
],
|
||||
'city' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache.city',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 30,
|
||||
'max' => 255,
|
||||
]
|
||||
],
|
||||
'zip' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache.zip',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 5,
|
||||
'max' => 5,
|
||||
]
|
||||
],
|
||||
'street' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache.street',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 30,
|
||||
'max' => 255,
|
||||
]
|
||||
],
|
||||
'housenumber' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache.housenumber',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 5,
|
||||
'max' => 5,
|
||||
]
|
||||
],
|
||||
'lon' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache.lon',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 11,
|
||||
'max' => 11,
|
||||
'eval' => LonLat::class,
|
||||
]
|
||||
],
|
||||
'lat' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache.lat',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 11,
|
||||
'max' => 10,
|
||||
'eval' => LonLat::class,
|
||||
]
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'0' => [
|
||||
'showitem' => 'cache_hit,service_hit,search_city,country,state,city,zip,street,housenumber,lon,
|
||||
--palette--;;latinfo'
|
||||
]
|
||||
],
|
||||
'palettes' => [
|
||||
'latinfo' => [
|
||||
'showitem' => 'lat'
|
||||
]
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,138 @@
|
||||
<?php
|
||||
return [
|
||||
'ctrl' => [
|
||||
'title' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer',
|
||||
'label' => 'title',
|
||||
'tstamp' => 'tstamp',
|
||||
'crdate' => 'crdate',
|
||||
'sortby' => 'sorting',
|
||||
'delete' => 'deleted',
|
||||
'rootLevel' => 1,
|
||||
'enablecolumns' => [
|
||||
'disabled' => 'hidden',
|
||||
],
|
||||
'iconfile' => 'EXT:ods_osm/Resources/Public/Icons/icon_tx_odsosm_layer.png',
|
||||
],
|
||||
'columns' => [
|
||||
'hidden' => [
|
||||
'exclude' => true,
|
||||
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
|
||||
'config' => [
|
||||
'type' => 'check',
|
||||
'renderType' => 'checkboxToggle',
|
||||
'default' => 0,
|
||||
'items' => [
|
||||
[
|
||||
0 => '',
|
||||
'invertStateDisplay' => true
|
||||
]
|
||||
],
|
||||
]
|
||||
],
|
||||
'title' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.title',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '30',
|
||||
]
|
||||
],
|
||||
'overlay' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.overlay',
|
||||
'config' => [
|
||||
'type' => 'check',
|
||||
'default' => '0'
|
||||
]
|
||||
],
|
||||
'javascript_include' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.javascript_include',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '30',
|
||||
'checkbox' => '',
|
||||
]
|
||||
],
|
||||
'javascript_openlayers' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.javascript_openlayers',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '30',
|
||||
]
|
||||
],
|
||||
'static_url' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.static_url',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '30',
|
||||
]
|
||||
],
|
||||
'tile_url' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.tile_url',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '30',
|
||||
]
|
||||
],
|
||||
'tile_https' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.tile_https',
|
||||
'config' => [
|
||||
'type' => 'check',
|
||||
'default' => '0',
|
||||
]
|
||||
],
|
||||
'min_zoom' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.min_zoom',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '2',
|
||||
'eval' => 'num',
|
||||
]
|
||||
],
|
||||
'max_zoom' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.max_zoom',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '2',
|
||||
'eval' => 'num',
|
||||
]
|
||||
],
|
||||
'subdomains' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.subdomains',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '5',
|
||||
]
|
||||
],
|
||||
'attribution' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.attribution',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '30',
|
||||
]
|
||||
],
|
||||
'homepage' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.homepage',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '30',
|
||||
]
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'0' => ['showitem' => 'hidden, title, overlay, javascript_include, javascript_openlayers, static_url, tile_url, tile_https, min_zoom, max_zoom, subdomains, attribution, homepage']
|
||||
],
|
||||
'palettes' => [
|
||||
'1' => ['showitem' => '']
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
return [
|
||||
'ctrl' => [
|
||||
'title' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_marker',
|
||||
'label' => 'title',
|
||||
'tstamp' => 'tstamp',
|
||||
'crdate' => 'crdate',
|
||||
'default_sortby' => 'ORDER BY title',
|
||||
'delete' => 'deleted',
|
||||
'iconfile' => 'EXT:ods_osm/Resources/Public/Icons/icon_tx_odsosm_marker.png',
|
||||
],
|
||||
'columns' => [
|
||||
'title' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_marker.title',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '30',
|
||||
]
|
||||
],
|
||||
'icon' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_marker.icon',
|
||||
'config' => ExtensionManagementUtility::getFileFieldTCAConfig(
|
||||
'icon',
|
||||
[
|
||||
'maxitems' => 1,
|
||||
'appearance' => [
|
||||
'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference'
|
||||
],
|
||||
'foreign_match_fields' => [
|
||||
'fieldname' => 'icon',
|
||||
'tablenames' => 'tx_odsosm_marker',
|
||||
],
|
||||
'default' => 0,
|
||||
],
|
||||
$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
|
||||
)
|
||||
],
|
||||
'size_x' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_marker.size_x',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 4,
|
||||
'max' => 4,
|
||||
'eval' => 'int',
|
||||
'checkbox' => 0,
|
||||
'range' => [
|
||||
'lower' => 0,
|
||||
'upper' => 9999,
|
||||
],
|
||||
'default' => 0
|
||||
]
|
||||
],
|
||||
'size_y' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_marker.size_y',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 4,
|
||||
'max' => 4,
|
||||
'eval' => 'int',
|
||||
'checkbox' => 0,
|
||||
'range' => [
|
||||
'lower' => 0,
|
||||
'upper' => 9999,
|
||||
],
|
||||
'default' => 0
|
||||
]
|
||||
],
|
||||
'offset_x' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_marker.offset_x',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 5,
|
||||
'max' => 5,
|
||||
'eval' => 'int',
|
||||
'checkbox' => 0,
|
||||
'range' => [
|
||||
'lower' => -9999,
|
||||
'upper' => 9999,
|
||||
],
|
||||
'default' => 0
|
||||
]
|
||||
],
|
||||
'offset_y' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_marker.offset_y',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 5,
|
||||
'max' => 5,
|
||||
'eval' => 'int',
|
||||
'checkbox' => 0,
|
||||
'range' => [
|
||||
'lower' => -9999,
|
||||
'upper' => 9999,
|
||||
],
|
||||
'default' => 0
|
||||
]
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'0' => [
|
||||
'showitem' => 'title, icon,
|
||||
--palette--;;sizeinfo'
|
||||
]
|
||||
],
|
||||
'palettes' => [
|
||||
'sizeinfo' => [
|
||||
'showitem' => 'size_x, size_y, offset_x, offset_y'
|
||||
]
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,131 @@
|
||||
<?php
|
||||
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
return [
|
||||
'ctrl' => [
|
||||
'title' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track',
|
||||
'label' => 'title',
|
||||
'tstamp' => 'tstamp',
|
||||
'crdate' => 'crdate',
|
||||
'default_sortby' => 'ORDER BY title',
|
||||
'delete' => 'deleted',
|
||||
'enablecolumns' => [
|
||||
'disabled' => 'hidden',
|
||||
],
|
||||
'iconfile' => 'EXT:ods_osm/Resources/Public/Icons/icon_tx_odsosm_track.png',
|
||||
],
|
||||
'columns' => [
|
||||
'hidden' => [
|
||||
'exclude' => true,
|
||||
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
|
||||
'config' => [
|
||||
'type' => 'check',
|
||||
'renderType' => 'checkboxToggle',
|
||||
'default' => 0,
|
||||
'items' => [
|
||||
[
|
||||
0 => '',
|
||||
'invertStateDisplay' => true
|
||||
]
|
||||
],
|
||||
]
|
||||
],
|
||||
'title' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.title',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 30,
|
||||
]
|
||||
],
|
||||
'color' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.color',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 10,
|
||||
'max' => 10,
|
||||
'default' => '#37b7ff',
|
||||
'eval' => 'nospace,trim',
|
||||
'renderType' => 'colorpicker',
|
||||
]
|
||||
],
|
||||
'width' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.width',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 3,
|
||||
'max' => 3,
|
||||
'default' => 5,
|
||||
'range' => [
|
||||
'lower' => 1,
|
||||
'upper' => 255
|
||||
],
|
||||
'eval' => 'int',
|
||||
]
|
||||
],
|
||||
'file' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.file',
|
||||
'config' => ExtensionManagementUtility::getFileFieldTCAConfig(
|
||||
'file',
|
||||
[
|
||||
'maxitems' => 1,
|
||||
'appearance' => [
|
||||
'createNewRelationLinkTitle' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db:tx_odsosm_track.file.add'
|
||||
],
|
||||
'foreign_match_fields' => [
|
||||
'fieldname' => 'file',
|
||||
'tablenames' => 'tx_odsosm_track',
|
||||
],
|
||||
'default' => 0,
|
||||
],
|
||||
'gpx,kml'
|
||||
)
|
||||
],
|
||||
'min_lon' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.min_lon',
|
||||
'config' => [
|
||||
'type' => 'none',
|
||||
'size' => 8,
|
||||
]
|
||||
],
|
||||
'min_lat' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.min_lat',
|
||||
'config' => [
|
||||
'type' => 'none',
|
||||
'size' => 8,
|
||||
]
|
||||
],
|
||||
'max_lon' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.max_lon',
|
||||
'config' => [
|
||||
'type' => 'none',
|
||||
'size' => 8,
|
||||
]
|
||||
],
|
||||
'max_lat' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.max_lat',
|
||||
'config' => [
|
||||
'type' => 'none',
|
||||
'size' => 8,
|
||||
]
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'0' => [
|
||||
'showitem' => 'hidden, title, color, width, file,
|
||||
--palette--;;lonlatinfo'
|
||||
]
|
||||
],
|
||||
'palettes' => [
|
||||
'lonlatinfo' => [
|
||||
'showitem' => 'min_lon, min_lat, max_lon, max_lat'
|
||||
]
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,165 @@
|
||||
<?php
|
||||
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
return [
|
||||
'ctrl' => [
|
||||
'title' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_vector',
|
||||
'label' => 'title',
|
||||
'tstamp' => 'tstamp',
|
||||
'crdate' => 'crdate',
|
||||
'default_sortby' => 'ORDER BY title',
|
||||
'delete' => 'deleted',
|
||||
'enablecolumns' => [
|
||||
'disabled' => 'hidden',
|
||||
],
|
||||
'iconfile' => 'EXT:ods_osm/Resources/Public/Icons/icon_tx_odsosm_vector.png',
|
||||
],
|
||||
'columns' => [
|
||||
'hidden' => [
|
||||
'exclude' => true,
|
||||
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
|
||||
'config' => [
|
||||
'type' => 'check',
|
||||
'renderType' => 'checkboxToggle',
|
||||
'default' => 0,
|
||||
'items' => [
|
||||
[
|
||||
0 => '',
|
||||
'invertStateDisplay' => true
|
||||
]
|
||||
],
|
||||
]
|
||||
],
|
||||
'title' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_vector.title',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 30,
|
||||
]
|
||||
],
|
||||
'data' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_vector.data',
|
||||
'config' => [
|
||||
'type' => 'text',
|
||||
'rows' => 10,
|
||||
'cols' => 60,
|
||||
'max' => 20000,
|
||||
'fieldControl' => [
|
||||
'vectordrawWizard' => [
|
||||
'renderType' => 'vectordrawWizard'
|
||||
]
|
||||
]
|
||||
]
|
||||
],
|
||||
'color' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.color',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 10,
|
||||
'max' => 10,
|
||||
'default' => '#3388ff',
|
||||
'eval' => 'nospace,trim',
|
||||
'renderType' => 'colorpicker',
|
||||
]
|
||||
],
|
||||
'width' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.width',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 3,
|
||||
'max' => 3,
|
||||
'default' => 3,
|
||||
'range' => [
|
||||
'lower' => 0,
|
||||
'upper' => 255
|
||||
],
|
||||
'eval' => 'int',
|
||||
]
|
||||
],
|
||||
'file' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_vector.file',
|
||||
'config' => ExtensionManagementUtility::getFileFieldTCAConfig(
|
||||
'file',
|
||||
[
|
||||
'maxitems' => 1,
|
||||
'appearance' => [
|
||||
'createNewRelationLinkTitle' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db:tx_odsosm_vector.file.add'
|
||||
],
|
||||
'foreign_match_fields' => [
|
||||
'fieldname' => 'file',
|
||||
'tablenames' => 'tx_odsosm_vector',
|
||||
],
|
||||
'default' => 0,
|
||||
],
|
||||
'geojson,json'
|
||||
)
|
||||
],
|
||||
'properties' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_vector.properties',
|
||||
'config' => [
|
||||
'type' => 'text',
|
||||
'rows' => 5,
|
||||
'cols' => 60,
|
||||
'max' => 2000,
|
||||
]
|
||||
],
|
||||
'properties_from_file' => [
|
||||
'exclude' => true,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_vector.properties_from_file',
|
||||
'config' => [
|
||||
'type' => 'check',
|
||||
'renderType' => 'checkboxToggle',
|
||||
'default' => 1,
|
||||
]
|
||||
],
|
||||
'min_lon' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.min_lon',
|
||||
'config' => [
|
||||
'type' => 'none',
|
||||
'size' => 8,
|
||||
]
|
||||
],
|
||||
'min_lat' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.min_lat',
|
||||
'config' => [
|
||||
'type' => 'none',
|
||||
'size' => 8,
|
||||
]
|
||||
],
|
||||
'max_lon' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.max_lon',
|
||||
'config' => [
|
||||
'type' => 'none',
|
||||
'size' => 8,
|
||||
]
|
||||
],
|
||||
'max_lat' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.max_lat',
|
||||
'config' => [
|
||||
'type' => 'none',
|
||||
'size' => 8,
|
||||
]
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'0' => [
|
||||
'showitem' => 'hidden, title, data, color, width, file, properties, properties_from_file,
|
||||
--palette--;;lonlatinfo'
|
||||
]
|
||||
],
|
||||
'palettes' => [
|
||||
'lonlatinfo' => [
|
||||
'showitem' => 'min_lon, min_lat, max_lon, max_lat'
|
||||
]
|
||||
]
|
||||
];
|
||||
Reference in New Issue
Block a user