I'm looking to do a bit of filtering of members/ memberGroups.
I've been looking but I can't for the life of me find it.
Is it embedded into a dll? Or is there source code that I can get into?
I see that there are "member" userControls in the following locatio:
C:\Inetpub\wwwroot\umbraco\members
But there's no code behind / calls to a dll, as far as I can see.
Any help appreciated.
ta,
yogi.
PS: I already had a previous login for the old forums, but when I tried to get it to send my new password to my email address, it didn't send it, so I had to create a new profile :-(
Thanks for the reply.It's probably best if I explain what I'm trying to do.
I log in as admin, and create a user who's userType is deptAdmin.This new user should be able to create a memberGroup of say "salesMemberGroup"
Then, they should be able to create members of this memberGroup only.ie, if they're logged in as "salesMemberGroup", they shouldn't see "accountsMemberGroup" or any others, other than the memberGoup that they belong to.
I'm not sure whether I should create a userControl, or try to "override" some of the existing functionality.Can someone comment?I think I'm getting the concepts but I'm still not entirely sure how to approach it.
You'll need a user control which will handle the create process for new members. I believe there is a Wizard control in ASP.NET which can help with that (if I recall correctly), but a custom .NET control isn't hard to build.
You'll need to have some kind of logic which looks at the type of the current member and adds the new one to the right group.
For page restriction it's quite possible to have pages restricuted to one or more member types, that's built into Umbraco itself.
@yogiberr: it can't be done using the existing ui, but it's indeed quite simple to accomplish what you need.
If you need this from the backend, try dashboard controls which are just plain old .net user controls, in which you can add the required logic of only creating members of a specific member type.
Either roll your own user control to create a new member (taking care of the complete create process yourself - not that hard) or use the standard .net CreateUserWizard asp.net control to do the hard work for your (altho you'll still need the extra logic to set the correct member group - again not that hard as the wizard has a number of events to subscribe to)
Initially, as soon as the user logs in, I need logic that'll:
1) finds out if the user is an admin user...if so, then display everything
2) if the user is a "department" admin, then only display members that belong to that memberGroup
The way I see it, this part requires no additional UI controls, so I believe that I should not use a userContol, but somehow override that existing logic that's inside the umbraco dll....
Is this correct?Sorry for the questions but I'm slowly finding my feet.
whereis the functionality for displaying members
hiya,
I'm looking to do a bit of filtering of members/ memberGroups.
I've been looking but I can't for the life of me find it.
Is it embedded into a dll? Or is there source code that I can get into?
I see that there are "member" userControls in the following locatio:
C:\Inetpub\wwwroot\umbraco\members
But there's no code behind / calls to a dll, as far as I can see.
Any help appreciated.
ta,
yogi.
PS: I already had a previous login for the old forums, but when I tried to get it to send my new password to my email address, it didn't send it, so I had to create a new profile :-(
The is member functionality in the business logic - e.g.:umbraco.cms.businesslogic.member;
There is a discussion about it here:
http://www.nibble.be/?p=20
and some further insights here:
http://umbraco.org/documentation/books/api-cheatsheet/working-with-members
>Tommy
hiya Tommy,
Thanks for the reply.It's probably best if I explain what I'm trying to do.
I log in as admin, and create a user who's userType is deptAdmin.This new user should be able to create a memberGroup of say "salesMemberGroup"
Then, they should be able to create members of this memberGroup only.ie, if they're logged in as "salesMemberGroup", they shouldn't see "accountsMemberGroup" or any others, other than the memberGoup that they belong to.
I'm not sure whether I should create a userControl, or try to "override" some of the existing functionality.Can someone comment?I think I'm getting the concepts but I'm still not entirely sure how to approach it.
Many thanks,
yogi
You'll need a user control which will handle the create process for new members. I believe there is a Wizard control in ASP.NET which can help with that (if I recall correctly), but a custom .NET control isn't hard to build.
You'll need to have some kind of logic which looks at the type of the current member and adds the new one to the right group.
For page restriction it's quite possible to have pages restricuted to one or more member types, that's built into Umbraco itself.
@yogiberr: it can't be done using the existing ui, but it's indeed quite simple to accomplish what you need.
If you need this from the backend, try dashboard controls which are just plain old .net user controls, in which you can add the required logic of only creating members of a specific member type.
Either roll your own user control to create a new member (taking care of the complete create process yourself - not that hard) or use the standard .net CreateUserWizard asp.net control to do the hard work for your (altho you'll still need the extra logic to set the correct member group - again not that hard as the wizard has a number of events to subscribe to)
Feel free to ask more questions if still unclear.
Cheers,
/Dirk
hiya,
Ta for the replies.Ok, I undertand that I need to add a userControl for creating new members.I've looked up an article to see how to do it:
http://www.nibble.be/?p=20
Initially, as soon as the user logs in, I need logic that'll:
1) finds out if the user is an admin user...if so, then display everything
2) if the user is a "department" admin, then only display members that belong to that memberGroup
The way I see it, this part requires no additional UI controls, so I believe that I should not use a userContol, but somehow override that existing logic that's inside the umbraco dll....
Is this correct?Sorry for the questions but I'm slowly finding my feet.
yogi
Have you seen Hendy's package? http://our.umbraco.org/projects/member-form ; I belive this is a perfect fit for your request.
Make sure to tell him thanks!
-Paul
hiya,
hmmm I'm trying to get it to work.
When trying to install as a "install local package" ...however, I get an error:
"System.IO.FileNotFoundException: Could not find file 'c:\inetpub\wwwroot\data\4624341e-acaf-4c6d-804f-82f8b13a565d\package.xml'."
It seems to be looking for a "package.xml" file that doesn't exist.
Any ideas?I've googled but can't get to the bottom of it :-0
Any advice appreciated
yogi
Indeed, the package is missing the .ascx file as well as the package manifest (package.xml). I've pinged Hendy to ask about an update.
In the meantime, have a look at the code file included for some hints on an approach.
-Paul
Hiya Paul,
You're right, will do. I also think I've confused the issue a bit.I'll try a different post which'll concentrate on the simplest issue first.
Cheers,
yogi
is working on a reply...