FEU and Custom Content (Problem with Re-Direct)
Posted: Thu Nov 19, 2009 6:22 am
Hello-
I recently got some good advice on here regarding the document on how to hide private data using FEU, Custom Content and SelfRegistration.
I did the following:
1. Installed FEU
2. Installed CustomContent
3. Installed SelfRegistration
4. Configured Front End Users (Added Group, Added Sample User)
5. Created a Login Page
All of the above worked perfect. I was able to login with the user I had created. Next I tried add the Custom Content code to my template to facilitate the redirect. The code is below:
{if !$ccuser->loggedin()}{redirect_page page='login'}{/if}
I turned off the "cacheable" option on all of the pages as well. It appears the the site is timing out and it states that " The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete." The URL the redirect is pointing to is correct, as this URL would work if the code above was not included in my template. My login page is also named "login" to ensure it is linked correctly.
Am I missing a step? My goal is to have the users login to view any content on the site. If a user is logged in, he should be able to view all content otherwise he would get re-directed to the login page. I am trying to keep it as simple as possible for now.
Any help is greatly appreciated.
I recently got some good advice on here regarding the document on how to hide private data using FEU, Custom Content and SelfRegistration.
I did the following:
1. Installed FEU
2. Installed CustomContent
3. Installed SelfRegistration
4. Configured Front End Users (Added Group, Added Sample User)
5. Created a Login Page
All of the above worked perfect. I was able to login with the user I had created. Next I tried add the Custom Content code to my template to facilitate the redirect. The code is below:
{if !$ccuser->loggedin()}{redirect_page page='login'}{/if}
I turned off the "cacheable" option on all of the pages as well. It appears the the site is timing out and it states that " The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete." The URL the redirect is pointing to is correct, as this URL would work if the code above was not included in my template. My login page is also named "login" to ensure it is linked correctly.
Am I missing a step? My goal is to have the users login to view any content on the site. If a user is logged in, he should be able to view all content otherwise he would get re-directed to the login page. I am trying to keep it as simple as possible for now.
Any help is greatly appreciated.