+1-888-365-2779
Try Now
More in this section

Forums / Designing & Styling / HTML created by widget template data

HTML created by widget template data

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