Answers.Body: <p>This should do it:</p>
  
  <pre><code>craft.app.getPlugins().getPlugin('pluginHandle').getSettings()
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-19T20:01:50.830Z
Answers.LastActivityDate: 2019-09-19T20:01:50.830Z
Answers.UserDisplayName: Brad Bell
Body: <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>
  
Tags: <plugins>
Title: Accessing plugin settings in template
ThreadText: # 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()
  
  ```
  
  
  ---
  
  