Is there any way to hide a page in menus when a user is logged in?
I have a register page which should be shown to users that are'nt logged in, but to when a user is logged in I want to hide the page.
Something like setting access rights to a page so it's only visible for logged in users.
I have tried the following:
CurrentPage.VisibleInMenu = false;
But this returns: "VisibleInMenu is read only".
My guess is that the simplest way to solve this is to use a filter to remove the page from the menu. You can read more about filters here: http://www.episerver.com/downloads/Documents/the_book/08_Custom_Property_Data_Types_and_Filters.pdf
The documentation is for 4.61 but I think filters works in the same way in 5.1.
CurrentPage.VisibleInMenu = false;
But this returns: "VisibleInMenu is read only".