In Login plugin documentation, a custom login page is possible if in user/config/plugins/login.yaml
there is the line
route: /user-login
I added to user/config/plugins/login.yaml
the line
route: /newLogin
to login.yaml.
I created a file newLogin.md
based on login.md
in login/pages with only a couple of extra words to differentiate between the new and default.
I have been unable to get Grav to recognise newLogin.md
in any location.
I have a single page where in the front matter, access: site.login: true is set, namely for <mysite>/events
As soon as a user tries to access the page, login is invoked - good.
But only the default login page is triggered - bad
I have put newLogin.md
in all of the following directories:
user/plugins/login/pages/
user/pages/
user/pages/events/
user/pages/en-gb/
My site uses multiple languages, in particular: en-gb, zh-cn, zh-hk
I have therefore put newLogin.en-gb.md
in the following directories:
user/plugins/login/pages/
user/pages/
user/pages/events/
None of these work. In each case the default login page is triggered.
Is this my error (not putting newLogin in the right place) or a bug?