Author
|
Message
|
John Smith
|
Friday 11 March 2005 1:28:04 am
hi there, In my ez Publish, i have a category called "members" and to access the content in and under that category i want that the people have to be logged in to read the content. What is the exact procedure. Please help. Regards.
|
Lex 007
|
Friday 11 March 2005 3:15:22 am
Hello
You have to :
- assign your category to a section - set a new role for members to read this section Lex
|
John Smith
|
Monday 14 March 2005 5:33:42 am
that not working for me. Can anybody please tell me the exact procedure to acess the content in and under that category i want that the people have to be logged in to read the content. cheers.
|
Nicolas Heiringhoff
|
Monday 14 March 2005 6:11:23 am
Hi John,
at first you have to build in the login template to you members section, where the user can log in to this section of your website. You can copy the login.tpl base/users/login.tpl to your template folder. Then include this template in the override for your member section. Which version of eZ publish do you use?
http://www.heiringhoff.de
|
John Smith
|
Monday 14 March 2005 6:17:17 am
hi Nicolas, thanks mate for your kind answer. I am using 3.5.1. Yeah, you are quite right about overriding templates but here I want to know the prodceure for assigning roles and permission. so that when somebody clicks the members links in the menu, they have to log in. cheers
|
Nicolas Heiringhoff
|
Monday 14 March 2005 7:02:22 am
You have to create a new section for your "member" folder and assign it to the folder "members". Go to "setup/sections" and create a new section. Maybe you want to call it "members". Assign the new section to the "members" Folder. Up to this point, the anonymous user is not allowed to see the "members" section. Now you have to create a new User group "members" with a new user "member". Finally you allow the user group "members" in the role policys to read the section "members".
http://www.heiringhoff.de
|
John Smith
|
Monday 14 March 2005 7:40:15 am
Hi Nicolas After assigning the members folder to the members section, the members folder link is disappearing from the menu. Is that right? Before assigning i can see the members link in the menu. Regards
|
Arran Price
|
Tuesday 15 March 2005 2:27:27 pm
Possibly what is happening is the anonymous user (users before logging in) dont have access to the members page at all and hence it dosent show in the menu. This would be due to the fetch (which generates the menu) not returning results it cant access. You could test this by requiring user logins on the site and checking to see if an authorised user (using the default login page) can see the menu entry and access the area you want. Either way thats probably a good test to start with. Hope thats of some help. Arran
|
John Smith
|
Thursday 17 March 2005 9:38:21 am
Yes, mate you are quite right, I checked it as you said, i am getting the folder after logging in. Now tell me what is the way or fetch statement to fetch all the folders in both case weather i logged in or not. cheers
|
John Smith
|
Friday 18 March 2005 12:49:08 am
hi all, Do anyone know how to fetch all the folder which are independent of roles and permissions. I want to fetch all the folders whether i am logged in or logged out. Obviously when I click on the restricted folder will show me login page. cheers....
|
Nicolas Heiringhoff
|
Friday 18 March 2005 1:09:03 am
Why don't you put your members folder into a folder called "login"? The "login" folder is visible for everybody, so it appears in the menu. After logging in the user who has the right to see the "mebers" folder will see it. This is very simple, but it worked for me. You can even create different folders like "members1", "members2" for different user groups.
http://www.heiringhoff.de
|
John Smith
|
Friday 18 March 2005 1:29:58 am
hi Nicolas, thanks for quick and kind reply. mate can you please explain in more details. I am confused here, You said put your members folder into a folder called "login". The "login" folder is visible for everybody. How to do that. cheers
|
John Smith
|
Friday 18 March 2005 1:47:04 am
what i did. i created Login folder. then in login folder i created members1 folder and assigned roles and permissions to that members1 folder. Now i can see the Login folder in the left menu. when i click on it, it gives me a blank page. Mate i am stuck here, please help. i have to finish this asap. cheers
|
Nicolas Heiringhoff
|
Friday 18 March 2005 1:47:08 am
Hi John, i had the same problem a couple of weeks ago. you want to create a folder "members" that only users can see who are logged in. You need a "login" menu item so that the "anonymous" users can log in and become a "member" user. I solved the problem like this: in my menu I created a folder called "login", so my menu looked something like this: news products contact login So everyone can see the login botton. In the "login" folder i put the folder which is reserved for the logged in "members" in your case. I created a "members" section and assigned it to the "members" folder. After that I gave the users in the usergroup "members" the right to see the "members" folder, so this folder is only visible for them and not for the anonymous user. I created an override for the "login" folder which included the login.tpl and that's it!
http://www.heiringhoff.de
|
Nicolas Heiringhoff
|
Friday 18 March 2005 1:50:42 am
did you create an override for the "login" folder? It has to include the "login.tpl" so the anonymous user can become a members user and see the members1 folder after login.
http://www.heiringhoff.de
|
John Smith
|
Friday 18 March 2005 2:01:34 am
hi Nicolas In my case i dont want any login facility for the anonymous users, but only login facility (not signing up)for the members only so that members can see the restriced folder. Please help. Regards
|
Nicolas Heiringhoff
|
Friday 18 March 2005 2:29:33 am
Hm, okay, but you must have a link for the login somewhere. An alternative would be that only the members know where the "members" folder is, like www.yourdomain.com/members.
http://www.heiringhoff.de
|
John Smith
|
Friday 18 March 2005 2:36:26 am
yeah i am getting there, tell me one more thing. I cannot access the current logged in user on the following pages.
1. home index page 2. the members folder page but on other pages i can access the current logged in user. What wrong in that.
|
Nicolas Heiringhoff
|
Friday 18 March 2005 2:48:56 am
I don't understand your question. What do you mean with "access the current logged in user" exactly?
http://www.heiringhoff.de
|
John Smith
|
Friday 18 March 2005 2:59:24 am
sorry, In the menu there are 5-6 categories, including login page acting as /members url fine. When i am logging in i am getting the members page on the right hand side of the site, but nothing under the login in the menu, means i cannot see the Members category under the login category. I think this should help to make you understand. cheers
|