Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Message board layout / structure View modes: 
User avatar
Member
Member
phipe-abv - 6/17/2013 7:08:02 AM
   
Message board layout / structure
Hello!

I am using version Version: 5.0 Build: 5.0.3671
My Message Board has now become quite long and people are gettgin confused on how to post comments as they need to scroll down till the end of the page. Therefore I need to put the "add new comment" box on top, so it displays first and then the actual messages are below it. Can you advise me how to to this ?

Thank you in advance!

User avatar
Member
Member
phipe - 6/20/2013 5:28:46 AM
   
RE:Message board layout / structure
Can someone help me ?

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 6/22/2013 1:18:02 AM
   
RE:Message board layout / structure
Hello,

I have now successfully tested this.

What you need to do is open a file in CMSModules\MessageBoards\Controls\MessageBoard.aspx

And change the location of the code:

<asp:Label ID="lblNoMessages" runat="server" Visible="false" CssClass="InfoLabel"
EnableViewState="false" />
<cms:QueryRepeater ID="rptBoardMessages" runat="server" />


from the top of the page to the bottom of the page.

Please let me know how it works for you and if you need any more information.

Kind regards,
Richard Sustek

User avatar
Member
Member
phipe - 6/24/2013 4:28:20 AM
   
RE:Message board layout / structure
Hello

Thank you for your reply.

All I have in the MessageBoard.aspx file is:

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="~/CMSWebParts/MessageBoards/MessageBoard.ascx.cs" Inherits="CMSWebParts_MessageBoards_MessageBoard" %>
<%@ Register Src="~/CMSModules/MessageBoards/Controls/MessageBoard.ascx" TagName="MessageBoard" TagPrefix="cms" %>

<cms:MessageBoard ID="msgBoard" runat="server" />

I don`t have the code that you posted above
?

Thanks

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 6/24/2013 7:35:32 AM
   
RE:Message board layout / structure
Hello,

Are you sure you have opened the right file? The exact path is CMSModules\MessageBoards\Controls Dont mistake CMSModules with CMSWebparts.

Kind regards,
Richard Sustek