-
☆ A M B ☆
- 2,475 Posts
Didn’t there used to be a system setting for site_url? I don’t see it anymore... some templates that were using it broke. Am I going senile, or are some of these changing under the hood? I see the rb_base_url, but no site_url.
I remember it as being there too. I guessed that it was to keep naive users from accidentally trashing the whole site, but I’m not sure.
I made a list of the "missing" system settings with examples for the book (last time I checked, the placeholders still worked):
[table][tr][td]Site URL[/td] [td][[++site_url]][/td] [td]http://localhost/revo/[/td][/tr]
[tr][td]Base Path[/td] [td][[++base_path]] [/td] [td]C:/xampp/htdocs/revo/[/td][/tr]
[tr][td]Base URL[/td] [td][[++base_url]][/td] [td]/revo/[/td][/tr]
[tr][td]Core path[/td] [td][[++core_path]][/td] [td]C:/xampp/htdocs/revo/core/[/td][/tr]
[tr][td]Manager Path[/td] [td][[++manager_path]][/td] [td]C:/xampp/htdocs/revo/manager/[/td][/tr]
[tr][td]Manager URL[/td] [td][[++manager_url]][/td] [td]/revo/manager/[/td][/tr]
[tr][td]Processors path[/td] [td][[++processors_path]][/td] [td]C:/xampp/htdocs/revo/core/model/modx/processors/[/td][/tr]
[tr][td]Assets path[/td] [td][[++assets_path]][/td] [td]C:/xampp/htdocs/revo/assets/[/td][/tr]
[tr][td]Assets URL[/td] [td][[++assets_url]][/td] [td]/revo/assets/[/td][/tr]
[tr][td]Connectors path[/td] [td][[++connectors_path]][/td] [td]C:/xampp/htdocs/revo/connectors/[/td][/tr]
[tr][td]Connectors URL[/td] [td][[++connectors_url]][/td] [td]/revo/connectors/[/td][/tr]
[tr][td]URL Scheme[/td] [td][[++url_scheme]][/td] [td]http://[/td][/tr]
[tr][td]HTTP Host[/td] [td][[++http_host]][/td] [td]localhost[/td][/tr]
[/table]
-
☆ A M B ☆
- 2,475 Posts
Groan. Thanks Bob for summarizing these. I wish they’d stop changing so I could code instead of retrofit.
-
☆ A M B ☆
- 2,475 Posts
Ok, those placeholders ARE still there, and they work (at least site_url still works), but they do NOT appear in the System Settings. They are derived from the config file.
Just in case anyone finds this, these still all work.
David Walker
Principal, Shorewalker DMS
Phone: 03 8899 7790
Mobile: 0407 133 020
-
MODX Staff
- 10,725 Posts
site_url, base_url (and various other settings) are calculated at run-time (or set explicitly) in the config file unless you explicitly add a site_url system (or context) setting to your installation to override those. It has never been part of the installation by default.
Quote from: opengeek at May 12, 2014, 07:48 AMsite_url, base_url (and various other settings) are calculated at run-time (or set explicitly) in the config file unless you explicitly add a site_url system (or context) setting to your installation to override those. It has never been part of the installation by default.
Jason, can they be treated like, say, site_name, or should we generally avoid them in code?
David Walker
Principal, Shorewalker DMS
Phone: 03 8899 7790
Mobile: 0407 133 020
David Walker
Principal, Shorewalker DMS
Phone: 03 8899 7790
Mobile: 0407 133 020