.. ==================================================
.. FOR YOUR INFORMATION
.. --------------------------------------------------
.. -*- coding: utf-8 -*- with BOM.
.. include:: ../../Includes.txt
.. _profileEditing:
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 = |
}
70 {
sColumn = telephone
eClass = TextShort
sHeadline = Phone
bEdit = 1
sWrap = |
}
80 {
sColumn = fax
eClass = TextShort
sHeadline = Fax
bEdit = 1
}
}
}
}