function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mxalix258mxalix258 

Authenticated Sites Page

I want to have a series of unauthenticated visualforce pages that are displayed via sites, but at a certain point, I want the user to login and authenticate to go any further.

 

When I setup a sites page how do I link to another visualforce page without it being routed to the standard customer portal login? I have created a custom login, but when I change the "Authorization required" page in the sites layout, it still goes to the generic customer portal login.

 

Any help would be appreciated!

sekharasekhara

HI ,

 

Add your visual force pages to perticular profile and test it.

 


Let me know in case of any issues.

mxalix258mxalix258

So, from the sites page I am linking to a visualforce page that lives in the customer portal. When I click on it (as a guest) I am automatically routed to the out of the box login for the portal. I have created a custom login page, but cannot figure out how to automatically route to that page when the user is not signed in. Does that make sense?

 

Does it require me to put "render" conditions for every visual force page? For example if profile=guest render the login page but if profile=x then render the normal page? or is there an easy way to just have it go to my custom login page automatically if they are not logged in?