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

Forums / Developing with Sitefinity / Any way to format a list item headline?

Any way to format a list item headline?

4 posts, 0 answered
  1. Nancy
    Nancy avatar
    18 posts
    Registered:
    25 Jan 2008
    06 Mar 2008
    Link to this post
    I need to insert CO2 with the 2 subscripted into a list item headline, but there doesn't appear to be any way to format text in the headline.  Any ideas?
    Thanks,
    Nancy
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    07 Mar 2008
    Link to this post
    Hello Nancy,

    I am not sure that I fully understand what you want to achieve. So we will need more information and detailed explanation to assist you. And what do you mean by "CO2"?

    If you want to just model the visual appearance of the Lists public control, you could modify the HTML + CSS in the corresponding templates located in ~/Sitefinity/ControlTemplates/Lists/ folder.

    Thanks for your cooperation in advance.

    Kind regards,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Nancy
    Nancy avatar
    18 posts
    Registered:
    25 Jan 2008
    07 Mar 2008
    Link to this post
    I am using the list module for terms and definitions in a glossary.  One of the terms I need to enter is CO2, which is the symbol for Carbon dioxide.  The 2 is supposed to be subscripted for proper display.  In the 'item content' field this is not a problem because I can edit the html and add the <sub>2</sub> tag. Unfortunately, the 'item headline' field in the list module is a text entry field that does not allow me to input any html formatting. Is there anyway to add html formatting to an 'item headline' in a list?

    Thanks for your help,
    Nancy
  4. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    10 Mar 2008
    Link to this post
    Hello Nancy,

    You could format the list's headline as shown below:

    CO<sub>2</sub><asp:Literal ID="headline" runat="server"></asp:Literal> 

    i.e you should find the element with ID "headline" in the corresponding template located in ~/Sitefinity/ControlTemplates/Lists/ folder and add the CO<sub>2</sub> declaration in front of it. Pay attention to the fact that there is a separate template for each List mode. For example, Anchor list mode uses ~/Sitefinity/ControlTemplates/Lists/AnchorListTemplate.ascx template.

    Hope this helps.

    Best wishes,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
4 posts, 0 answered