Mono Support How to make discussion tab section of group visible to public ?  (Closed)

Viewed 19784 time(s), 10 post(s), 7/26/2013 4:38:33 PM - by super
7/29/2013 3:32:46 PM
2218 Reputation 300 Total posts

Hello Super,

You can reference this blog post to create a custom webpart: http://www.mono-software.com/Blog/post/Mono/93/Building-a-custom-Web-part/

Regards,
Mario

1
7/26/2013 4:38:33 PM
6018 Reputation 709 Total posts

I want everyone to be able to see the discussion tab section but right now it says only members of that group can see the content ? 

But to post the topic in discussion section any user will have to login anyway to I don't find any reason to keep it hidden this discussion section..

any help ?

2
7/29/2013 8:10:02 AM
15993 Reputation 2214 Total posts

Hi,

there is a ~\MonoX\ModuleGallery\SocialNetworking\Groups\GroupView.ascx.cs WebPart and he has CheckUserPrivileges method that you should override and change the visibility of the lnkDiscussion.

Regards

3
7/29/2013 10:46:19 AM
6018 Reputation 709 Total posts

From where I can get GroupView.ascx.cs code behind page ?

4
7/29/2013 12:39:40 PM
1849 Reputation 181 Total posts

This is the part of the source code paid package (Purchase MonoX). Regarding to the above answer you don't need the source code.

5
7/29/2013 1:36:34 PM
6018 Reputation 709 Total posts

But khorvat mentioned that I can do this in GroupView.ascx.cs but the monox pre-build version that I have doesn't have GroupView.ascx.cs ?

How to accomplish this task then ?

6
7/29/2013 2:19:39 PM
2218 Reputation 300 Total posts

Hello Super,

You would need to create your own GroupView control and inherit the MonoX's GroupView control and override the method which Kristijan mentioned.

Regards,
Mario

7
7/29/2013 3:19:01 PM
6018 Reputation 709 Total posts

Could you please help me with the code ? I am not sure how to go about it ?

8
7/29/2013 5:40:57 PM
6018 Reputation 709 Total posts

This did the job:  

<MonoX:Discussion runat="server" ID="snDiscussion" RelatedContentVisible="true" IsPublic="true"  />

9
7/30/2013 6:27:47 AM
15993 Reputation 2214 Total posts

Great to hear this, yes that is one option that you can use.

Regards

10
This is a demo site for MonoX. Please visit Mono Software for more info.