Two Views of Same Module

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.
7/28/2010 6:22:45 PM
Gravatar
Total Posts 131

Two Views of Same Module

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?

7/28/2010 9:14:00 PM
Gravatar
Total Posts 2169

Re: Two Views of Same Module

Hi David,

Have you explored using the Feed Manager? I use it all of the time for things like this and it works very well.

HTH,
Joe D.

7/29/2010 5:35:12 AM
Gravatar
Total Posts 34

Re: Two Views of Same Module

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;
             rptPosts.DataBind();
         }
 

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.

7/29/2010 10:55:44 AM
Gravatar
Total Posts 131

Re: Two Views of Same Module

I think the feed should work well without custom code. On this site I'm trying to not customize at all.

Thanks

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