FEU Redirect based on User groups
Posted: Sun Aug 24, 2014 5:14 pm
I am trying to use the CustomContent and Front End User Modules to create a selection of pages specific to each client.
What I am trying to achieve is that a customer, who is a member of the FEU group = "Customer-A", "Customer-B" etc, logs in to the login page for the site, they are re-directed to their home page based on their group identity. I was trying to keep it fairly simple so in the CMS the structure is:
1. Login
1.1 Redirect
2. Customer-A
2.1 Customer-A-Home-Page
2.2 Customer-A-Details
2.3 Customer-A-Page-3
3. Customer-B
3.1 Customer-B-Home-Page
3.2 Customer-B-Details
3.3 Customer-B-Page-3
4. Customer-C
4.1 Customer-C-Home-Page
4.2 Customer-C-Details
And so, on. The plan was the menu will only show level 2, so Customer-A wouldn't see Customer-B's menus. Then the redirect page could easily manage as we add more clients (the pages don't contain anything particularly sensitive, just brand guidelines etc.)
I don't know if this is achievable, or if there is a better way of doing this but was wondering if I could do an if else query????
e.g.
{if !$ccuser->memberof("Customer-A")}{redirect_page page="Customer-A-Home-Page"}{/if}
then else as many as I need to validate????
I'm no coder, so this is all a bit of an unknown to me and I couldn't figure out how to have multiple if else to check the memberof status.
Any ideas, everything is working just looking for a solution to this.?
Thanks
Using CMSMS 1.11.11 /Linux/PHP5.4.28
What I am trying to achieve is that a customer, who is a member of the FEU group = "Customer-A", "Customer-B" etc, logs in to the login page for the site, they are re-directed to their home page based on their group identity. I was trying to keep it fairly simple so in the CMS the structure is:
1. Login
1.1 Redirect
2. Customer-A
2.1 Customer-A-Home-Page
2.2 Customer-A-Details
2.3 Customer-A-Page-3
3. Customer-B
3.1 Customer-B-Home-Page
3.2 Customer-B-Details
3.3 Customer-B-Page-3
4. Customer-C
4.1 Customer-C-Home-Page
4.2 Customer-C-Details
And so, on. The plan was the menu will only show level 2, so Customer-A wouldn't see Customer-B's menus. Then the redirect page could easily manage as we add more clients (the pages don't contain anything particularly sensitive, just brand guidelines etc.)
I don't know if this is achievable, or if there is a better way of doing this but was wondering if I could do an if else query????
e.g.
{if !$ccuser->memberof("Customer-A")}{redirect_page page="Customer-A-Home-Page"}{/if}
then else as many as I need to validate????
I'm no coder, so this is all a bit of an unknown to me and I couldn't figure out how to have multiple if else to check the memberof status.
Any ideas, everything is working just looking for a solution to this.?
Thanks
Using CMSMS 1.11.11 /Linux/PHP5.4.28