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.
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.
I'd like to place the same blog module on two different pages, but have different settings for each. On the one page, just want to show 1 entry as an excerpt. on the other page, have 10 entries with RSS, categories, etc.
Easy way to do this?
Have you explored using the Feed Manager? I use it all of the time for things like this and it works very well.
We did it on our new site and it was few lines of code really. We hooked up to the mojoPortal Blog class:
using (IDataReader reader = Blog.GetPage(SettingsHelper.GetFoodForThoughtModuleId(), DateTime.Now.Date.AddDays(1), 1, 2, out totalPages))
rptPosts.DataSource = reader;
the only hack in the solution comes from the fact that the module class requires the module ID (first parameter) to get the proper data which we stored in user.config. We bound the data to the repeater and styled it with a custom css.
I think the feed should work well without custom code. On this site I'm trying to not customize at all.