Comments (4)
Hey, $spConf is an array, could you please post your TypoScript as an example? Thx.
from tt_address.
Sorry for the late reply, I was very busy.
Thx Tom.
Here is an excerpt of the plugin config typoscript:
plugin.tx_ttaddress_pi1 {
templatePath = fileadmin/sites/templates/tt_address/
# per default nichts ausgeben
defaultTemplateFileName = no_ttaddress.html
pidList = {$idAddressList}
singleSelection = {$idContactDefault}
singleSelection.override.data = GP:rel
# Default - dataWrap: required, trim, poss. noTrimWrap
templates.default {
uid.required = 1
gender.required = 1
first_name.required = 1
first_name.trim = 1
first_name.noTrimWrap = || |
middle_name.trim = 1
middle_name.required = 1
last_name.trim = 1
last_name.required = 1
last_name.noTrimWrap = |||
title.required = 1
title.trim = 1
title.noTrimWrap = || |
email.trim = 1
email.required = 1
phone.trim = 1
phone.wrap = <span class="tel">|</span>
phone < plugin.tx_ttaddress_pi1.lib.phoneLink
phone.required = 1
mobile.trim = 1
mobile.required = 1
mobile.wrap = <span class="tel">|</span>
www.trim = 1
www.required = 1
building.trim = 1
building.required = 1
room.trim = 1
room.required = 1
organization.trim = 1
organization.required = 1
city.trim = 1
city.required = 1
zip.trim = 0
zip.required = 1
zip.wrap = <span class="plz">|</span>
region.required = 1
region.trim = 1
country.required = 1
country.trim = 1
image.required = 1
fax.required = 1
address.required = 1
address.br = 1
address.trim = 1
fax.trim = 1
subparts {
accessplan_pdf.hasOneOf = region
accessplan_gmap_marker.hasOneOf = company, zip, city, address
profession.hasOneOf = country
name.hasOneOf = title, first_name, last_name
role.hasOneOf = middle_name
adr.hasOneOf = zip, city, address
location.hasOneOf = zip, city
contact {
innerWrap.cObject = TEXT
innerWrap.cObject.value = {$contactText}
innerWrap.stdWrap.typolink {
parameter.dataWrap.field = uid
parameter.dataWrap.wrap = {$idContactForm}?rel=|
parameter.data = GP:L
parameter.intval=1
parameter.wrap = &L=|
extTarget =
ATagParams = class="internal-link"
}
}
}
}
# Kontakt- bzw. Anfahrt-Link erstellen
lib.link = COA
lib.link {
innerWrap.cObject = TEXT
innerWrap.cObject.value = ---kontakt---
innerWrap.stdWrap.typolink {
parameter.dataWrap.field = uid
parameter.dataWrap.wrap = {$idContactForm}?rel=|
parameter.data = GP:L
parameter.intval = 1
parameter.wrap = &L=|
extTarget =
ATagParams = class="internal-link"
}
}
# erstellt einen Telefon-Link für Browser, die das verstehen
lib.phoneLink = COA
from tt_address.
Hi! I also came across this. The error occurs if the subpart doesn't have the 'hasOneOf' property (in Toms case this is valid for the subpart 'contact'). My solution is to change line 461 from
if ($spConf['hasOneOf'] && !$this->hasOneOf($spConf['hasOneOf'], $address)) {
to
if (isset($spConf['hasOneOf']) && !$this->hasOneOf($spConf['hasOneOf'], $address)) {
in order to check whether the property is set.
from tt_address.
Merged this issue to master now. Will be in next release.
from tt_address.
Related Issues (20)
- [FEATURE] Add a switch for LinkedIn profiles for companies HOT 1
- [TASK] Update Leaflet library HOT 2
- [FEATURE] Add zoom levels to flexform settings HOT 3
- [FEATURE] Map zooming HOT 2
- documentation: use tt_address in own extension HOT 1
- TCA: cruser_id obsolete in V12 HOT 3
- Email Field in Reactions not available
- Nominatim API no longer accessible via this URL, TYPO3 v11, tt_address v8.0.1 HOT 2
- insert record rendering not possible because of missing stdWrap functionality HOT 1
- storeBackwardsCompatName does not work or is completely dropped HOT 1
- Cannot add new address record in TYPO3 v12 PHP 8.2 HOT 1
- Deleting Record results in Error HOT 7
- Exception while insert new address record HOT 2
- compatibility issue within the 'execute' method of a Command in Symfony Console version 7 HOT 1
- google.maps.Marker is deprecated HOT 1
- FE Error: Uncaught TypeError: item.getAttribute
- Error in TYPO 12.4.14 with console command HOT 3
- PHP Warning: Trying to access array offset on null HOT 1
- Wrong label values in backend list (Workspaces) HOT 1
- Undefined array key "pages" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tt_address.