- Hinzugefügt: Hook: $GLOBALS['CUSTOMCATALOG_HOOKS']['generateDetailsUrl']. Erlaubt das Manipulieren von CC generierter Frontend-Urls.
- Fixed: CC-Leser: Mehrsprachige Einträge mit eindeutigem Alias wurden nicht korrekt gefunden.
- Update: Geolocation attribute: Die URL des Geocoder Requests kann jetzt über die Globale:
selbst definiert werden. Dies ist dann notwendig, wenn z.B. ein offizieller API Schlüssel notwendig wird (bei vielen Geocoder Anfragen blockt Google mit QUERY_LIMITS) (dies ist in den letzten Wochen deutlich angezogen)Code:
$GLOBALS['PCT_CUSTOMELEMENTS']['ATTRIBUTES']['geolocation']['google']['geocoder_url']
- Update: Geolocation attribute: Zusätzlich wurde ein curl request als Fallback auf die Google API ergänzt, falls die erste Abfrage scheitert.
Parameter 1: $objRow -> Aktueller CC-Eintrag-Datensatz
Parameter 2: $objJumpTo -> Aktuelles Zielseiten-Objekt \PageModel
Parameter 3: $objCC -> Aktuelles CC-Objekt
Rückgabe: Neue Frontend-url zum Eintrag
---
dacconfig.php oder initconfig.php
Code:
$GLOBALS['PCT_CUSTOMELEMENTS']['ATTRIBUTES']['geolocation']['google']['geocoder_url'] = "https://maps.googleapis.com/maps/api/geocode/json?key=MYGOOGLEAPIKEY"
Das Modul kann wie gewohnt direkt ersetzt werden. Der interne Cache sollte geleert oder deaktivert sein.
Ein Datenbankupdate nicht nötig.
Changelog:
Code:
### 2.15.0 Added: Hook: $GLOBALS['CUSTOMCATALOG_HOOKS']['generateDetailsUrl'] to manipulate frontend urls (#686) ### 2.14.4 Fixed: tl_pct_customcatalog.list_headerFields returned empty (#683) Fixed: Validate entries found by unique alias against the current language in readers (#685) Update: Put constants in quotations for php 7.2 Update: Geolocation attribute: Use a curl request as fallback incase the file_get_contents request on the Google maps api fails (#679) Update: Geolocation attribute: Use $GLOBALS['PCT_CUSTOMELEMENTS']['ATTRIBUTES']['geolocation']['google']['geocoder_url'] to define the request string on the google maps api. Default is: https://maps.googleapis.com/maps/api/geocode/json?key= Update: Details-url-building: Added Contao 4 standard methods Update: API: Show hook definitions in list view (#681) Update: Added more attribute types to default $GLOBALS['PCT_CUSTOMCATALOG']['ignoreOptionFields'] global (#684) Update: $GLOBALS['PCT_CUSTOMCATALOG']['ignoreOptionFields'] can now be defined before CC e.g. in config files (#684) Update: Searchindex: Find and validate entry using the multilingual responsive findPublishedItemsByIdOrAlias method (#687)


Einen Kommentar schreiben: