# Discourse.SiteSettings не работает после обновления

**URL:** <https://meta.discourse.org/t/discourse-sitesettings-not-working-after-upgrade/218006>\
**Category:** Development\
**Tags:** plugin-api\
**Created:** [13.Февраль.2022 00:16:31 UTC](https://meta.discourse.org/t/discourse-sitesettings-not-working-after-upgrade/218006 "2022-02-13T00:16:31Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [16.Февраль.2022 20:05:39 UTC](https://meta.discourse.org/t/discourse-sitesettings-not-working-after-upgrade/218006/4 "2022-02-16T20:05:39Z")

</div>

Ага, понятно. В данном случае `settings` указывает на настройки темы, которые гораздо чаще встречаются для тем/плагинов.

Я обновил документацию о том, как получить доступ к настройкам сайта. Это можно сделать следующим образом:

```js
<script type="text/discourse-plugin" version="0.1">
  let siteSettings = api.container.lookup('site-settings:main');
</script>

```

---

_[View the full topic](https://meta.discourse.org/t/discourse-sitesettings-not-working-after-upgrade/218006)._
