Login Custom Page

Permalink
Hi community I am trying to install a custom login page from package but so far no success.
I'm using:
$p2 = SinglePage::add('/login',$pkg);

Am I missing something or its not possible to do that?

PauloCarvalhoDesign
 
12345j replied on at Permalink Reply
12345j
logins already a single page- if you include it in package/yourthemename/single_pages/login.php it will overwrite the default automatically.
PauloCarvalhoDesign replied on at Permalink Reply
PauloCarvalhoDesign
I have tried that but its not overwriting it.
Do I need to define anything?
I have tried:
my_package/single_pages/login.php
and
my_package/themes/mytheme/single_pages/login.php
jeramy replied on at Permalink Reply
jeramy
Alternatively, you could place the login.php into your theme folder then change your site_theme_paths.php file in the config folder to point to it:
$v->setThemeByPath('/login', 'your_theme_folder_name');
PauloCarvalhoDesign replied on at Permalink Reply
PauloCarvalhoDesign
ok but I want this to happen on packaging a theme.
So when a user install the theme and logs out next time he logs in the theme login shows up.
PauloCarvalhoDesign replied on at Permalink Reply
PauloCarvalhoDesign
Ok it seems to me that :
my_package/single_pages/login is not overriding the default login page.

If I place the same file in single_pages folder it works.
Could this be a bug not allowing single pages to override unless they are installed or something else?
I mean apart from placing the file inside the package in a proper order is there another way of installing a login page from package?