Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2024-12-18 09:13:46

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,752
Website

Re: Dialog vertical positioning changes ?

etc wrote #338564:

But if one has this possibility (subdomain), can we make it work?

Bloke wrote #338565:

The multi-site installation offers support for an admin side URL variable, so we could probably tweak that to allow separation of the two areas if that variable is set in the config file.

Yes, with the multi-site installation, the paths are /admin and /public with config.php in a separate /private directory (see here). You can assign the /admin and /public (webroot) paths different subdomains, and then specify this in config.php as admin_url.* This then sets the internal variable ahu to the admin URL instead of hu. '/textpattern/'.

Note: the txp_login cookie remains attached to the domain name (without subdomain) so that it is accessible on the public side for txp:if_logged_in and plugins that leverage that.

It works well, but it does require that users set up an additional subdomain.

*I’ve just noticed that this got removed in the latest file sync in 4.9-dev. I’ll do a test installation and then provide a PR.


TXP Builders – finely-crafted code, design and txp

Offline

#62 2024-12-18 09:21:10

etc
Developer
Registered: 2010-11-11
Posts: 5,255
Website GitHub

Re: Dialog vertical positioning changes ?

Thanks for confirmation, an admin subdomain looks better security-wise.

jakob wrote #338569:

Note: the txp_login cookie remains attached to the domain name (without subdomain) so that it is accessible on the public side for txp:if_logged_in and plugins that leverage that.

Isn’t it rather txp_login_public cookie on the public side?

Offline

#63 2024-12-18 09:37:38

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,296
GitHub

Re: Dialog vertical positioning changes ?

jakob wrote #338569:

*I’ve just noticed that this got removed in the latest file sync in 4.9-dev. I’ll do a test installation and then provide a PR.

That was me – mea culpa. I’ve restored from previous and tweaked formatting slightly. Testing still welcome!

Offline

#64 2024-12-18 14:48:10

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,752
Website

Re: Dialog vertical positioning changes ?

gaekwad wrote #338572:

That was me – mea culpa. I’ve restored from previous and tweaked formatting slightly. Testing still welcome!

No problem. I just tried this out locally, and it works in 4.9.


TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB