Apologies if this has been addressed but I can't seem to find any definite answers.
I'm using VS Studio 2015 Update 3, .NET 4.5.2 with the normal MVC stack.
I''ve downloaded the latest Umbraco (7.5.3)
I have a website that has a whole lot of users. For simplicity, these users belong to groups and those groups belong to companies. The users are stored in an MS SQL database in custom user, group and company tables.
The content of the website (text, images, colorsetc) can be customized per group, company and for the entire site via a bespoke (rather messy) system.
I would like to move the whole website to use a CMS system (possibly Umbraco) but I have questions:
1) Can umbraco use my member structures for member permissions, content, etc? If not out of the box I would appreciate someone pointing me in the direction of the reading I need to do to get this coded.
2) Can umbraco display content based on the member group. Once again if not out of the box, would appreciate some guidance on how to accomplish this.
Example of content override would be:
In the code:
"Hello
For everyone:
"Hello Joe Smith, welcome to our site, the sky is blue."
For company XYZ:
"Hello Joe Smith, welcome to company XYZ website, the sky is pink."
For Company XYZ, group ABC:
Hello Joe Smith, welcome to company XYZ website, IT group, the sky is orange."
Site
Content
-Company
Content
-CompanyGroup
Content
-Company2
Content
-Company3
Content
then you can
1) set the restrictions on the content by create a membergroup for each groupnode (company or companygroup) and give that membergroup access to the page
2) display custom messages by leveraging the Model.Content.Parent.DocumentType to see what the type of the containing node is (and decide if you need to go up another level to get the company name) Model.Content.Parent.Name or .GetPropertyValue("propertyNameOfTheNameToDisplay") to get the display the name.
3) get grouped settings from the parentnode (or any ancestor) like color, images and so forth.
Member Groups and Content
Hi Everyone,
Apologies if this has been addressed but I can't seem to find any definite answers.
I'm using VS Studio 2015 Update 3, .NET 4.5.2 with the normal MVC stack. I''ve downloaded the latest Umbraco (7.5.3)
I have a website that has a whole lot of users. For simplicity, these users belong to groups and those groups belong to companies. The users are stored in an MS SQL database in custom user, group and company tables.
The content of the website (text, images, colorsetc) can be customized per group, company and for the entire site via a bespoke (rather messy) system.
I would like to move the whole website to use a CMS system (possibly Umbraco) but I have questions:
1) Can umbraco use my member structures for member permissions, content, etc? If not out of the box I would appreciate someone pointing me in the direction of the reading I need to do to get this coded.
2) Can umbraco display content based on the member group. Once again if not out of the box, would appreciate some guidance on how to accomplish this.
Example of content override would be:
In the code: "Hello
For everyone: "Hello Joe Smith, welcome to our site, the sky is blue."
For company XYZ: "Hello Joe Smith, welcome to company XYZ website, the sky is pink."
For Company XYZ, group ABC: Hello Joe Smith, welcome to company XYZ website, IT group, the sky is orange."
Many Thanks for any help
If you structure your site like so:
then you can
1) set the restrictions on the content by create a membergroup for each groupnode (company or companygroup) and give that membergroup access to the page
See: https://our.umbraco.org/documentation/getting-started/data/members/
2) display custom messages by leveraging the
Model.Content.Parent.DocumentType
to see what the type of the containing node is (and decide if you need to go up another level to get the company name)Model.Content.Parent.Name
or.GetPropertyValue("propertyNameOfTheNameToDisplay")
to get the display the name. 3) get grouped settings from the parentnode (or any ancestor) like color, images and so forth.More info see: https://our.umbraco.org/documentation/reference/querying/ipublishedcontent/
4) you can check if someone is logged in and more by using the MemberShipHelper
see: https://our.umbraco.org/documentation/reference/querying/membershiphelper/
The only thing that isnt possible i think is nest membershipgroups, but im not sure.
As a last note, the members in umbraco can be customized to your hearts content for a good example see : http://24days.in/umbraco/2015/extending-membership/
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.