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.

Visibility of the groups (Closed) (Mono Support )

Viewed 31355 time(s), 11 post(s) 1/13/2012 5:28:25 PMby ttsoft
ttsoft

ttsoft

1/13/2012 5:28:25 PM
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
This content has not been rated yet. 
116 Reputation 14 Total posts
khorvat

khorvat

1/16/2012 7:52:00 AM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
ttsoft

ttsoft

1/16/2012 2:55:39 PM
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
This content has not been rated yet. 
116 Reputation 14 Total posts
ttsoft

ttsoft

1/16/2012 6:06:08 PM
Ok !,
Now i have replicated populargroups customization, with your suggestion, and i think to be on right way.
This content has not been rated yet. 
116 Reputation 14 Total posts
khorvat

khorvat

1/17/2012 7:44:21 AM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
ttsoft

ttsoft

1/21/2012 9:47:13 AM
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
This content has not been rated yet. 
116 Reputation 14 Total posts
khorvat

khorvat

1/21/2012 2:10:09 PM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
ttsoft

ttsoft

1/21/2012 2:40:50 PM
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
This content has not been rated yet. 
116 Reputation 14 Total posts
ttsoft

ttsoft

1/21/2012 3:06:37 PM
"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?
-

This content has not been rated yet. 
116 Reputation 14 Total posts
khorvat

khorvat

1/23/2012 2:42:23 PM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
1 2