MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

How can i make the best use of Groups ?  (Mono Support )

Viewed 7941 time(s), 7 post(s) 2/12/2012 2:39:21 PMby mkoenings
mkoenings

mkoenings

2/12/2012 2:39:21 PM
Hi again,

I try to use groups to give people the possibility to find stuff they are interested in easily.
Its a site for musicians so let´s say we want a group for guitarists and one group for bassists.
How can I make blogs and forums appear only on one group ?
I cannot see how i can connect ( or filter ?) the objects on a groups main page.


thanks, Michael

This content has not been rated yet. 
60 Reputation 6 Total posts
imarusic

imarusic

2/13/2012 1:29:52 PM
Hi,

Can you give us more details regarding your request? You would like that forum and blog tabs are visible only for one group? Right now forums are supported under the groups, but blog requires some customization in order to work under the groups.

Regards.
This content has not been rated yet. 
3016 Reputation 428 Total posts
mkoenings

mkoenings

2/13/2012 7:54:18 PM
Hi,
thanks for your reply.
When I put a blog post list control on a group page, on the properties sheet, the blog category selection is empty ( showing "no preference")
It would be great to be able to filter blog posts for a group by category. This works well for news!

I may have the wrong expectations here. I also work with Telligent Community, where the groups are a hierarchical concept that groups forums , blogs, galleries etc. Its almost like having sub-sites for different interest groups. I would love monoX to support that as well.

I guess one can create something similar in monoX with some custom code, right ?

thanks, Michael



This content has not been rated yet. 
60 Reputation 6 Total posts
imarusic

imarusic

2/14/2012 10:01:59 AM
You can not use the blog categories for filtering because they depend on blog.
Yes, adding a blog requires some work to do, you can find more details regarding it here. Under the third post you can find more details on how to implement that functionality.

Regards.
This content has not been rated yet. 
3016 Reputation 428 Total posts
mkoenings

mkoenings

2/14/2012 10:19:56 AM
I cannot get to the page you are referring ( i am logged in)
"You do not have permission to access this resource."
thanks, Michael
This content has not been rated yet. 
60 Reputation 6 Total posts
imarusic

imarusic

2/14/2012 10:46:49 AM
Sorry, my mistake, here are the necessary steps:

There is a lot of work to do if you want those features implemented. We do not have it currently implemented on MonoX so I can give you the necessary steps:

Please bear in mind this:

1. First of all you need to extend the Blog table and add a GroupId field. That relation can be 1:1 like the one that discussion has. When you change your Database you will need to recreate the DAL using the LLBLGenPro.

2. During the group creation you will need to also create a blog for that group. You can use the followiing code and add it to btnSave_Click()method in GroupEdit module.

protected void btnSave_Click(object sender, EventArgs e)
 {
         ...
  
       EventRepository.GetInstance().GroupCreateEvent(entity);
  
       BlogEntity blog = new BlogEntity(GuidExtension.NewSequentialGuid());
       blog.Name = entity.Name;
       blog.Slug = UrlSeoOptimizer.GetOptimizedString(blog.Name);
       blog.DateCreated = DateTime.Now;
       blog.UserId = new Guid(entity.UserId.ToString());
       blog.ApplicationId = MembershipRepository.GetInstance().GetApplicationId();
       blog.LanguageId = LocalizationUtility.GetCurrentLanguageId();
  
       MonoXCacheManager cacheManager = MonoXCacheManager.GetInstance();
       cacheManager.RemoveAll(CacheKeys.Blog.Root);
       cacheManager.RemoveAll(CacheKeys.Blog.Editors);
  
       using(BlogRepository rep = BlogRepository.GetInstance())
            rep.SaveBlog(blog);
  
       ....
}

Please be aware that Group blogs will be visible on the main blog page.

3. Extend SnGroupWorkingMode enum and add a value for Blog. You will also need to add a logic for your blog module wherever the SnGroupWorkingMode enum is used.

4. Blog list control will also need to be changed because it needs to filter the blog posts by groupId(Which is available as Url parameter).

5. You will also need to change the Url rewritting rules(in web.config) because the Blog has it's own rules and now will be used under the groups.
This content has not been rated yet. 
3016 Reputation 428 Total posts
mkoenings

mkoenings

2/14/2012 12:40:09 PM
thanks for the detailed answer!
I appreciate the flexible concept ( if one is willing to code). But I need something more out the box.
best regards, Michael (answered)

This content has not been rated yet. 
60 Reputation 6 Total posts