In the AlloyTech sample code, inside the GetLoginUrl()method, there's this code:
PageReference loginPageRef = CurrentPage["LoginPage"] as PageReference;
How do you set that CurrentPage["LoginPage"] ? How does it get resolved?
If it is a method in a base class or similar, LoginPage is probably a dynamic property.
Yes, LoginPage is a dynamic property. But how do I set it? From what I've read, dynamic properties are set/read via code. I search for all instances of "LoginPage" on the solution but all I got is just that one (gets the value). I can't find anywhere in the code which sets the value.
Or is it somehow set on the (edit mode) properties of the page? I checked the page and there's no LoginPage property there. Sorry, still getting my head with EPiServer
Found it! If you go to the Edit Mode of your Start page and click on the Dynamic properties button on the top menu, you could see the settings of all dynamic properties there.
It's not intuitive for beginners like me, good thing I was able to search a similar thread Looking for the SearchPage instead.
It is common for devs to be a bit lost around the edit and admin features, that is evident from the certification tests taken by dev where those questions, while basic, are often answered incorrectly.
I suggest you read through the edit and admin manuals at least once to know the basics of those areas as well: