Customizing User List Template
I am trying to customize the List Settings template with additional fields from the Basic Profile. I have a custom field (JobTitle) that I would like to include. I tried using the following code which works on the Single Item Settings template, but only the field title("Position:") shows up in the List Settings .
<
sf:TextField
ID
=
"jobTitle"
runat
=
"server"
DataFieldName
=
"JobTitle"
DisplayMode
=
"Read"
Title
=
"Position:"
CssClass
=
"sfprofileJobTitle"
/>
Hi Bob,
The problem that is occurring is because you can use TextField control in Single Item Settings Template, but TextField control is not used the same way in List Settings as it is used in Single Item Template. List Settings uses FieldListView control.
I recommend using FieldListView control
<
sf:FieldListView
ID
=
"jobTitle"
runat
=
"server"
Text
=
"Position: 0"
Properties
=
"JobTitle"
WrapperTagName
=
""
WrapperTagCssClass
=
""
/>
<
sf:TextField
ID
=
"jobTitle"
runat
=
"server"
DataFieldName
=
"JobTitle"
DisplayMode
=
"Read"
Value='<%# String.Format("Position: 0",Eval("JobTitle"))%>' CssClass="sfprofileJobTitle" />