More in this section
Forums / Designing & Styling / HTML created by widget template data

HTML created by widget template data

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. Nick
    Nick avatar
    113 posts
    Registered:
    21 Oct 2008
    18 Mar 2011
    Link to this post
    I'm using a news list and I've edited the widget template so that title, date and author are displayed. I've put these into my own HTML layout fine, but when it is rendered on the website the author data is always enclosed in a div tag, which I don't want. 

    For example, the sf:DetailsViewHyperLink that displays the date just displays to date, the sf:DetailsViewHyperLink just displays the news title (and link) BUT the sitefinity:TextField that gets added for the Author surrounds the author in div tags. I want it displayed as a literal, without any surrounding HTML tags.

    Is this possible? What is the difference between "sf:" and "sitefinity:" - is there documentation explaining what options we have to display data in widget templates?

    Thanks

    Edit: I've noticed from other templates that sf:FieldListView has a WrapperTagName property. This doesn't appear to do anything for the sitefinity:TextField control though.
  2. Nick
    Nick avatar
    113 posts
    Registered:
    21 Oct 2008
    18 Mar 2011
    Link to this post
    Ok, I've solved it, I noticed in the "Full news item" template the following did exactly what I wanted. 

    <asp:Literal Text="<%$ Resources:Labels, By %>" runat="server" /> <sf:PersonProfileView runat="server" />
2 posts, 0 answered