<p>This should do it:</p>

<pre><code>craft.app.getPlugins().getPlugin('pluginHandle').getSettings()
</code></pre>

CC BY-SA 4.0
2019-09-19T20:01:50.830Z
2019-09-19T20:01:50.830Z
Brad Bell
<p>How can I access plugin settings in the template? </p>

<p>I have <code>config.php</code> file defined in plugin directory and i want to access these values (or their overwritten values) in Twig templates.</p>

<p>I tried <code>{{craft.pluginHandle.getSettings}}</code> but it didn't work, it throws an error that such a method does not exist.</p>

<plugins>
Accessing plugin settings in template
# Accessing plugin settings in template

(Asked by: username_0 on 2019-09-18)

How can I access plugin settings in the template?

I have `config.php` file defined in plugin directory and i want to access these values (or their overwritten values) in Twig templates.

I tried `{{craft.pluginHandle.getSettings}}` but it didn't work, it throws an error that such a method does not exist.

**Tags:** plugins

---

## 1 answers

### Answer by username_1 on 2019-09-19. Score: 5 | Accepted answer

This should do it:
craft.app.getPlugins().getPlugin('pluginHandle').getSettings()


---

