[TYPO3-english] Re: Re: WEC Map FE User Coordinates

Miguel xadi10 at hotmail.com
Wed Jan 15 01:55:16 CET 2014


Thank you very much for your guidance Jan

However, i am not suceeding in making WEC Map search for the coordinates in the fields that i have created inside fe_users table: "user_lat" and "user_long". The map is still giving me the users with the cache coordinates.

So if you please give a quick check in my code, i would appreciate very much.

plugin.tx_wecmap_pi3.flexformTables.fe_users {

where = usergroup = 1
 

$TCA['fe_users']['ctrl']['EXT']['wec_map'] = array (
'isMappable' => 1,
'latlongFields' => array (
'lat' => 'user_lat',
'long' => 'user_long',
),
);

// enable map-display in BE for DB-table tx_myext
$geocodeTCA = array (
'tx_wecmap_geocode' => array (
'exclude' => 1,
'label' => 'LLL:EXT:wec_map/locallang_db.xml:berecord_geocodelabel',
'config' => array(
'type' => 'passthrough',
'form_type' => 'user',
'userFunc' => 'tx_wecmap_backend->checkLatLongStatus',
'params' => array (
'latlongFields' => array(
'lat' => 'user_lat',
'long' => 'user_long',
),
),
),
),
);

t3lib_extMgm::addTCAcolumns('fe_users', $geocodeTCA, 1);
$TCA['fe_users']['interface']['showRecordFieldList'] .= 
',tx_wecmap_geocode';
t3lib_extMgm::addToAllTCAtypes('fe_users', 'tx_wecmap_geocode', '1', 
'after:'user_lat');

$mapTCA = array (
'tx_wecmap_map' => array (
'exclude' => 1,
'label' => 'LLL:EXT:wec_map/locallang_db.xml:berecord_maplabel',
'config' => array (
'type' => 'passthrough',
'form_type' => 'user',
'userFunc' => 'tx_wecmap_backend->drawLatLongMap',
'params' => array (
'latlongFields' => array(
'lat' => 'user_lat',
'long' => 'user_lat',
),
),
),
),
);

t3lib_extMgm::addTCAcolumns('fe_users', $mapTCA, 1);
$TCA['fe_users']['interface']['showRecordFieldList'] .= ',tx_wecmap_map';
t3lib_extMgm::addToAllTCAtypes('fe_users', 'tx_wecmap_map', '1', 
'after:tx_wecmap_geocode');


Thanks in advance and kind regards


More information about the TYPO3-english mailing list