Login layout

Open to all! Ask other shopowners for help.
PiLLaO
Contributor
Posts: 107
Joined: Thu Nov 05, 2020 9:28 pm
Phoenix Version: v1.1.0.6
Has thanked: 53 times
Been thanked: 11 times

Re: Login layout

Post by PiLLaO »

In the past, I wouldn't have thought twice about it.

Now, I only do things that don't involve core work... ;) ;)

EDIT:
burt wrote: Mon Aug 03, 2026 9:14 am Yes, you would need to touch core in that file.

See second paragraph here:
viewtopic.php?p=24084#p24084
I don't see the url when I answer the first time, I make the change to play around


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
burt
Core Team
Posts: 4550
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Login layout

Post by burt »

UNTESTED. You could try amending the file to;

Code: Select all

    public static $GROUP_KEYS = [
      'contact_us' => 'MODULE_CONTENT_CU_INSTALLED',
      'index' => 'MODULE_CONTENT_I_INSTALLED',
      'product_info' => 'MODULE_CONTENT_PI_INSTALLED',
      'info' => 'MODULE_CONTENT_INFO_INSTALLED',
    ];
AND then change each instance of GROUP_KEYS to $GROUP_KEYS

--

At this point, hooks should now be able to push extra entries in $GROUP_KEYS.

EG [ /includes/hooks/admini/modules/login.php ]:

Code: Select all

class hook_admin_modules_login {

  public function listen_injectBodyStart() {
    cfgm_layout::$GROUP_KEYS['login'] = 'MODULE_PI_LOGIN_INSTALLED';
  }

}
Now you need a MODULE_PI_LOGIN_INSTALLED in the database, empty ready to store the installed Layout Modules which you would create for Login, see (eg) https://github.com/CE-PhoenixCart/Phoen ... .sql#L2078 which is for the Contact Us PI modules.


--


It's increasingly difficult to get pro-active testers helping move Phoenix forwards; If you do try any of the above, please report back if it all works or not (make sure to test for unintended side-effects).
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
burt
Core Team
Posts: 4550
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Login layout

Post by burt »

PiLLaO wrote: Mon Aug 03, 2026 9:19 am In the past, I wouldn't have thought twice about it.

Now, I only do things that don't involve core work...
:+1: :+1: :+1:

Love to read this. You're keeping your files sane so that upgrades are easier, but equally installing addons is always completely safe.
I am not here to build for you.
I am here to build with you. Let's help each other.
PiLLaO
Contributor
Posts: 107
Joined: Thu Nov 05, 2020 9:28 pm
Phoenix Version: v1.1.0.6
Has thanked: 53 times
Been thanked: 11 times

Re: Login layout

Post by PiLLaO »

@burt the changes that you recommended me works like a charm.

now fighting with design xD
User avatar
burt
Core Team
Posts: 4550
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Login layout

Post by burt »

Also see viewtopic.php?f=39&t=3439
where @azpro is hoping to start a new Project...
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
burt
Core Team
Posts: 4550
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Login layout

Post by burt »

PiLLaO wrote: Tue Aug 04, 2026 7:18 am @burt the changes that you recommended me works like a charm.
TY @PiLLaO

https://github.com/CE-PhoenixCart/Phoen ... 73654c3c1a
1.1.0.8

This thread is a brilliant example of how Phoenix Cart moves forward. Doesn't take hours and hours of effort. Just a simple back and forth discussion of 10 minutes. Please, everyone reading this...help Phoenix move forward!
I am not here to build for you.
I am here to build with you. Let's help each other.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply