Mono Support Visibility of the groups (Closed)

Viewed 33041 time(s), 11 post(s), 1/13/2012 5:28:25 PM - by ttsoft
1/13/2012 5:28:25 PM
116 Reputation 14 Total posts

Buonasera.

Normally, the list of "closed" groups is visible to all users. (registered or not)
Then only members can access. Right?

But there is a way to hide the list of groups closed to users who are not members of those groups?

Thanks in advance

TT

1
1/16/2012 7:52:00 AM
15993 Reputation 2214 Total posts

Hi,

Normally, the list of "closed" groups is visible to all users. (registered or not)
Then only members can access. Right?
Yes that is correct.

But there is a way to hide the list of groups closed to users who are not members of those groups?
As authenticated users who are not members of private group still needs to be able to find it therefor built-in MonoX functionality is to show the private groups to users so they can join them. To extend the MonoX functionality to enable your scenario you will have to use the MonoSoftware.MonoX.ModuleGallery.SocialNetworking.GroupList property TemplatedControl and attach to ItemDataBound event in the Page_Init event. When you do that you will have apply code similar to this
if (e.Item.ItemType == ListViewItemType.DataItem)
{
    SnGroupDTO group = ((ListViewDataItem)e.Item).DataItem as SnGroupDTO;
    e.Item.Visible = group.IsPublic;               
}

Let us know if you need anything else. 

Regards

2
1/16/2012 2:55:39 PM
116 Reputation 14 Total posts

Hello Khorvat,
I thank you for your answer.

But, if it's not to ask too, could give me a more "step by step" explanation.?

To me, It would clarify, some aspect of monox architechture.

i renew thanks

Tullio

3
1/16/2012 6:06:08 PM
116 Reputation 14 Total posts

Ok !,
Now i have replicated populargroups customization, with your suggestion, and i think to be on right way.

4
1/17/2012 7:44:21 AM
15993 Reputation 2214 Total posts

Hi,

I'm glad to hear that you have managed to implement the code we suggested, if you need any other pointers let us know.

Regards

5
1/21/2012 9:47:13 AM
116 Reputation 14 Total posts

Although I understood the content of the code now I have difficulty in assembling my code within the existing installation.

It's necessary a visual studio project ?

I fill out a new web application in which is contained my webpart?

I must have to start a solution from a presetting solution ?

Finally: my free license allows this implementation?

Thank you

6
1/21/2012 2:10:09 PM
15993 Reputation 2214 Total posts

Hi,

these are all common .NET development tools and practices. Visual Studio is the primary development tool there are other tools but we prefer this one. To start a custom solution you are not required to use MonoX predefined solution. This solution is just here to help you start build your custom application faster. MonoX Free license allows this kind of customization.

I fill out a new web application in which is contained my webpart?
Can you please explain this a bit more ?

Regards

7
1/21/2012 2:40:50 PM
116 Reputation 14 Total posts

mmm. . .
the really problem is that i'm not still sure with .net develepment tools and asp.net practice.

However, now I try to develope the right question for you!

(even if someone said that if you are able to formulate the right question you already know the answer!) :-) :-)

"see" you later

8
1/21/2012 3:06:37 PM
116 Reputation 14 Total posts

"I fill out a new web application in which is contained my webpart?"
means:

i must develop a new web part inheriting some "monox types" and build all by a new vs2010 project ?
in this case wich kind of project choose i ?
with such references?
-

9
1/23/2012 2:42:23 PM
15993 Reputation 2214 Total posts

Hi,

our practice is to use WAP (Web application project type) to develop custom projects but both types can be used. If you want to create a WebPart module then yes, it is best (and easiest) to use Visual Studio 2010 and inherit from MonoSoftware.MonoX.BaseAutoRegisterPart. this way your WebPart will be automatically registered under the MonoX module gallery.

Please read the following article to get more familiar with the developing MonoX custom modules and building custom solutions.



Note: Can you please open a new topic for every separate issue / question. Thanks

Regards

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