Custom file just before login page

Hi,
I want to setup a custom file with a connexion button just to be displayed before login page.
I want the user to click on a connexion button on this page to be redirect to the login page.
I would like also the user to go to the custom file when disconnecting.
Can someone help me to setup that ?
Thanks !

You need to write your own custom file (read the topic Project Setup > Custom Files in the help file) and use the Custom File as the Start page.

That is exactly what I did, but when I run my project, it tells me I don’t have permissions to access the home.php page(custom file page).
Moreover, after logging out, I’m not redirected to the homepage but to the login page.

If you use User Level Security, you need to grant “List” permission to the Custom File for the Anonymous User Level (users before login).