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 (Zatvorena) (Mono Support )

33800 put(a) pogledan, 11 odgovor(a) 13.1.2012. 17:28:25Kreirao(la) ttsoft
ttsoft

ttsoft

13.1.2012. 17:28:25
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
Ovaj sadržaj još nije ocijenjen. 
116 Reputacija 14 Ukupno objava
khorvat

khorvat

16.1.2012. 7:52:00
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
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
ttsoft

ttsoft

16.1.2012. 14:55:39
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
Ovaj sadržaj još nije ocijenjen. 
116 Reputacija 14 Ukupno objava
ttsoft

ttsoft

16.1.2012. 18:06:08
Ok !,
Now i have replicated populargroups customization, with your suggestion, and i think to be on right way.
Ovaj sadržaj još nije ocijenjen. 
116 Reputacija 14 Ukupno objava
khorvat

khorvat

17.1.2012. 7:44:21
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
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
ttsoft

ttsoft

21.1.2012. 9:47:13
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
Ovaj sadržaj još nije ocijenjen. 
116 Reputacija 14 Ukupno objava
khorvat

khorvat

21.1.2012. 14:10:09
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
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
ttsoft

ttsoft

21.1.2012. 14:40:50
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
Ovaj sadržaj još nije ocijenjen. 
116 Reputacija 14 Ukupno objava
ttsoft

ttsoft

21.1.2012. 15:06:37
"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?
-

Ovaj sadržaj još nije ocijenjen. 
116 Reputacija 14 Ukupno objava
khorvat

khorvat

23.1.2012. 14:42:23
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
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
1 2