craftcms / docs

Documentation for Craft CMS, Craft Commerce, and other official products.
https://craftcms.com/docs
39 stars 150 forks source link

Reference to non-existing template variable in Craft 4 upgrade guide #484

Closed mmikkel closed 1 year ago

mmikkel commented 1 year ago

Description

The craft.systemSettings template variable was removed in 4.0, but is referenced as replaced by craft.app.systemSettings in the Craft 4 upgrade guide. However, craft\services\SystemSettings was removed in 4.0 and there is no craft.app.systemSettings variable.

CleanShot 2023-03-24 at 09 43 37@2x

Tangentially: I might be wrong but AFAIK there is no good description in the docs on how to actually get to the things that used to sit in craft.systemSettings, from the Twig layer (a common use case is pulling the system email, see https://craftcms.stackexchange.com/questions/10055/how-do-i-get-the-settings-system-email-address). Might be an opportunity to add something about that to the docs?

Steps to reproduce

1. 2.

Additional info