Add content to Protected page for non-logged in users?
Posted: Thu Jan 30, 2014 4:39 pm
I have a site set up that uses FEU to let users pick their location (state). Some content is hidden using the Protected Content page type, based on where you are located. You also have the option to change your state, or even select 'None' if none of the options matches your location.
The issue I'm having is when someone is permitted to view a page, then switches their state to one that ISN'T permitted to see it, the page disappears from the nav (as expected), and the content disappears as well, leaving the user looking at a page devoid of content.
Can I drop some logic on the page to redirect them somewhere if this occurs? Or put some sort of 'default' content up if they get to the page but aren't allowed to see it? The same issue arises if someone links to that page from somewhere and the user isn't logged in to the correct group.
EDIT - we're using FEU without the need to log in as a registered user, so we don't simply want the present the user with a login screen. You can view the site in question at: http://www.superiorplusenergy.com/residential
If you select New York as your state, you can view the Electricity and Natural gas pages, but if you switch to New Jersey (Change State in the grey stripe) they are rendered blank. Thanks in advance for any advice!
The issue I'm having is when someone is permitted to view a page, then switches their state to one that ISN'T permitted to see it, the page disappears from the nav (as expected), and the content disappears as well, leaving the user looking at a page devoid of content.
Can I drop some logic on the page to redirect them somewhere if this occurs? Or put some sort of 'default' content up if they get to the page but aren't allowed to see it? The same issue arises if someone links to that page from somewhere and the user isn't logged in to the correct group.
EDIT - we're using FEU without the need to log in as a registered user, so we don't simply want the present the user with a login screen. You can view the site in question at: http://www.superiorplusenergy.com/residential
If you select New York as your state, you can view the Electricity and Natural gas pages, but if you switch to New Jersey (Change State in the grey stripe) they are rendered blank. Thanks in advance for any advice!