We've a client who has a WCM site using the 1600 template. They're looking to incorporate a homepage variation based on authorization, basically, having a Member Homepage and an Non-Member homepage.
We've tried using the 'AuthScript' code that is utilized for the Aspen themed Member site, but that 'breaks' the homepage design (gives the homepage the interior page layout), so that's not working. We've considered creating a navigational component for the MemberHome page that would not go into the navigation and a similar 'AuthScript' would be utilized to redirect if a user is logged in. The member home page would then use a different content area directory for the homepage design content, but this does not appear to be working as intended.
I'm hoping we don't have to redesign the entire site in a forest or custom master page, but that's the 'suggested' route for anything WCM these days.
Has anyone done this for a 1600 templated site?
You should be able to
You should be able to hide/show different components based on if a person is logged in or even automatically re-direct your members to the member home page when they go to the non-member home page. The basic logic to check if someone is logged in is below. Hope this helps.
if (Asi.Security.AppPrincipal.CurrentIdentity.IsAuthenticated && Asi.Security.AppPrincipal.CurrentIdentity.LoginUserId != ""){
}