Reputation: 330
I have a page: /events/
(a) If the user is not logged in, i want him to see a login
-> Result: Page is visible for all
+ Login-Element on page (with: hide on login
)
(b) If the user is in the usergroup eventuser
, he should see an event-plugin on the page
-> Events-Plugin is on page (with group permission: eventuser
)
Everything cool for those two guys.
But if the user is a normal logged-in user (without the group eventuser
) the page /events/
is empty.
How can i create a page which is accessible for anonymous users (to show a login) and is visible in the navigation for eventuser
s but not for standard fe_users?
Upvotes: 0
Views: 225
Reputation: 3207
You need to create two user group eventuser
and websiteuser
.
Now you can redirect user on specific page using redirect option in group configuration.
If user assign websiteuser
gruop then you can redirect it's your site home page and eventuser
group redirect to event page.
Upvotes: 1
Reputation: 604
Create two pages on the same level.
The first one is accessible for everyone (with "hide on login" set), the second one is accessible for the eventuser
group only.
Create your login plugin on the publicly available page and set a redirect to the restricted page on successful login.
Create your event plugin on the access restricted page.
Now you need to set a redirect page for your other groups (or the other way around) after successful login, so all other groups, except eventuser
will get redirected somewhere else. They won't see the events page at all.
hth
Upvotes: 1