More in this section
Forums / General Discussions / Customizing User List Template

Customizing User List Template

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Bob
    Bob avatar
    3 posts
    14 Dec 2010
    21 Apr 2011
    Link to this post
    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" />

    I also tried to get the value from the default field "About" and could not get that to show up in the list either (I can get it in the single item, but not the list).

    Any guidance you could provide would be greatly appreciated.
  2. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    18 Sep 2017
    27 Apr 2011
    Link to this post
    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="" />

    or if you want to achieve the same result using TextField control

    <sf:TextField ID="jobTitle" runat="server" DataFieldName="JobTitle" DisplayMode="Read" Value='<%# String.Format("Position: {0}",Eval("JobTitle"))%>' CssClass="sfprofileJobTitle" />

    I hope this information will be helpful to you and if you experience any more issues feel free to write back.

    Kind regards,
    Stanislav Velikov
    the Telerik team

2 posts, 0 answered