HTML content: order by begin date

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
8/28/2008 5:53:40 AM
Gravatar
Total Posts 13
Partner

HTML content: order by begin date

I am using the HTML content module with multiple items option activated.

I wanted the items ordered by begin date but I noticed that the items were ordered by date of insertion of the records into DB.

So I added in file dbHTMLContent.cs, function public static IDataReader GetHtmlContent(int moduleId,DateTime beginDate) the following line:

sqlCommand.Append("ORDER BY BeginDate DESC ;");

Now it works, but I'm not sure this is the best solution

8/28/2008 7:14:20 AM
Gravatar
Total Posts 18439

Re: HTML content: order by begin date

Hi Walter,

Your fix is correct. The whole multi items thing in the html feature is poorly implemented and I have thought several times to disable it to avoid confusion until I have to time revamp it. For now, I will make the same change here.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.