Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm building a website for a soccer club with several teams, players and staffpersonal. All those types have their own page. I was thinking of using the Members section for the players and staff and the MemberGroups for the teams / departments. Next thing I want to do is to create the team pages in the contenttree. In my opinion I have to "connect" the correct team to each teampage. I was thinking of doing this using some sort of MemberGroup picker instead of the MemberPicker.
I cant find anything like it, so is it possible to create my own datatype or am I not seeing something?
One way to "connect" your groups to pages is to use the Public Acccess feature to limit access to a page to a given group. In your navigation you can use some XSLT extensions to only show pages to which the current user has access.
I've also had another situation where I needed to do it with a "MemberGroup picker" as a datatype on a content page though. An easy way to do that without any custom development is to use the uComponents SQL DropDownList datatype, and use this SQL statement to pull the groups from the DB:
SELECT n.text as Text, n.id as Value From umbracoNode nWHERE nodeObjectType='39EB0F98-B348-42A1-8662-E7EB18487560' ORDER BY text
Hope this helps,Tom
Thnx for the reply. I've fixed it by creating a datatype of a custom .net control. It seemed the easiest way for me ;-)
how to get member groups list from membergroup?
Just for reference, when I checked in Umbraco 6.1.6 then the query to get member groups was:
SELECT n.text as Text, n.id as Value From umbracoNode n
ORDER BY text
Thanks Dan, and Tom for this! This thread just helped me to make a nice checkbox list of member groups.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted