DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
Profile EditingΒΆ
The aim this time is to directly display a form that only allows editing of one specific entry based on the currently logged-in user. In other words: Users should be able to edit their own fe_users entry (or parts of it, at least).
Full TypoScript configuration code:
plugin.tx_mhomsqlio {
dbal {
eType = Typo3
sDatabase = my_db
sTable = fe_users
}
data {
eDisplay = Form
bEdit = 1
bShowFixedEntry = 1
aFixedId {
uid {
sSource = fe_user
sField = uid
}
}
bIsEditForm = 1
bUseFixedIdAsDefaultForParamId = 0
aField {
10 {
sColumn = name
eClass = TextShort
bEdit = 0
}
20 {
sColumn = address
eClass = TextLong
sHeadline = Address
bEdit = 1
}
30 {
sColumn = zip
eClass = TextShort
sHeadline = ZIP
bEdit = 1
}
40 {
sColumn = city
eClass = TextShort
sHeadline = City
bEdit = 1
}
50 {
sColumn = country
eClass = Dropdown
sHeadline = Country
bEdit = 1
aOption {
AT = Austria
DE = Germany
CH = Switzerland
FL = Liechtenstein
- = other
}
}
60 {
sColumn = email
eClass = TextShort
sHeadline = E-Mail
bEdit = 1
sWrap = <a href="mailto:|">|</a>
}
70 {
sColumn = telephone
eClass = TextShort
sHeadline = Phone
bEdit = 1
sWrap = <a href="tel:|">|</a>
}
80 {
sColumn = fax
eClass = TextShort
sHeadline = Fax
bEdit = 1
}
}
}
}