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

Forums / Designing with Sitefinity / Designing the Forums layout

Designing the Forums layout

6 posts, 1 answered
  1. Stuart Hemming
    Stuart Hemming avatar
    144 posts
    Registered:
    07 Jul 2004
    13 May 2010
    Link to this post
    Just when I think I've got something straight ...

    Ivan said that Forums aren't templated. I inferred from that it was simply a case of modifying the relevant control in the Sitefinity/ControlTemplates/Forums folder. It doesn't appear to be the case.

    If I'm looking looking at my Forums page, which has had both a "Forums" control and a "Forums List" control, I can't seem to change the layout. FWIW, I've been modifying the ForumsList.ascx control.

    Any clues?

    -- 
    Stuart
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    13 May 2010
    Link to this post
    Hello Stuart Hemming,

    You should be able to change the layout from Sitefinity\ControlTemplates\Forums\ForumList.ascx for Forums control. Attached is a sample video.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Stuart Hemming
    Stuart Hemming avatar
    144 posts
    Registered:
    07 Jul 2004
    13 May 2010
    Link to this post
    Let me return the favour... demo.zip

    -- 
    Stuart
  4. Stuart Hemming
    Stuart Hemming avatar
    144 posts
    Registered:
    07 Jul 2004
    14 May 2010
    Link to this post
    Any thoughts?

    I'm using the correct template and there's no mapping to worry about so I'm either doing it wrong, or something's broken.

    Obviously, I'd rather that it turned out that I was doing it wrong. FYI, I've had no problem editing either the SingleForum or SingleThread templates.

    -- 
    Stuart
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    14 May 2010
    Link to this post
    Hi Stuart Hemming,

    You are editiog the controls that are inside forumsRepeater. This repeater is used when you work with Categorized forums. When the forums are not categorized - GridView with id="Uncategorized" is bound.

     
    <h2 class="sf_forumCategoryTitle"><asp:Literal ID="UncategorizedHeader" runat="server" Text="<%$Resources:Uncategorized %>"></asp:Literal></h2>
     
       <asp:GridView ID="Uncategorized" runat="server" CssClass="sf_forumsList" AutoGenerateColumns="false" GridLines="none">
           <Columns>
               <asp:TemplateField HeaderText="<%$Resources:Status %>">
                   <ItemTemplate>
                       <asp:Literal ID="forumStatus" runat="server"></asp:Literal>
                   </ItemTemplate>
               </asp:TemplateField>
               <asp:TemplateField HeaderText="<%$Resources:Forum %>">
                   <ItemTemplate>
                       <asp:LinkButton ID="btnOpenForum" runat="server"></asp:LinkButton>
                       <div><asp:Label ID="lblDescription" runat="server"></asp:Label></div>
                   </ItemTemplate>
                   <ItemStyle CssClass="sf_forumTitle" />
               </asp:TemplateField>
     
    .....
                  .....


    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
    Answered
  6. Stuart Hemming
    Stuart Hemming avatar
    144 posts
    Registered:
    07 Jul 2004
    14 May 2010
    Link to this post
    Oh dear!

    I apologise. 

    Under normal circumstances, I'm not this dumb. 

    No, really I'm not. 

    Ask anyone. 

    I've been ill. 

    That's what it is. I've been ill so I'm not thinking as well as I normally do. 

    Yes, I've, er.... been ill. Hmmm.

    Sorry.

    -- 
    Stuart
Register for webinar
6 posts, 1 answered