Answers.Body: <p>Based on the <a href="https://github.com/nystudio107/craft-seomatic#seomatic-variables" rel="nofollow noreferrer">SEOmatic docs</a>, something like this should do the trick nicely:</p>
  
  <pre><code>{% do seomatic.meta.seoTitle("my title") %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-09T12:54:32.770Z
Answers.Text: Okay I feel really dumb to have missed this part of the doc... It worked thank you very much !
Answers.UserDisplayName: Elodie Grondin
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-09T14:02:18.397Z
Answers.Text: No worries! To be completely honest, Andrew's plugin docs are a bit hard to go through since they're just one long README. Personally, I would love to see the docs migrated to his website where they could be organized a little better (using Vuepress or something similar). Would be easier to find and navigate to the section you want to read about...
Answers.UserDisplayName: Jalen Davenport
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-10T00:54:53.990Z
Answers.Text: I agree. And that's exactly what I plan to do @JalenDavenport
Answers.UserDisplayName: andrew.welch
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-10T02:25:37.550Z
Answers.Text: Lol - I wondered if you would see this  Thanks! 
Answers.UserDisplayName: Jalen Davenport
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-09T12:09:05.187Z
Answers.LastActivityDate: 2019-01-09T12:09:05.187Z
Answers.UserDisplayName: Jalen Davenport
Body: <p>I'm using SEOmatic plugin in craft cms 3 and I need to set the seoTitle in my template but can't figure out how to do it...</p>
  
  <p>I know that in Craft 2, it was possible to merge the seomatic variable. I tried something like this :</p>
  
  <pre><code>{% set seomatic = seomatic|merge({
      meta: {
          seoTitle: 'my title'
      }
  }) %}
  </code></pre>
  
  <p>But it doesn't work because the merge filter only works with arrays or "Traversable", and I got object... I'm kind of stuck with this issue.</p>
  
  <p>Has anyone ever managed to make a merge of seoTitle?</p>
  
Tags: <craft3><plugin-seomatic><merge>
Title: How to merge SEOmatic object in Craft 3?
ThreadText: # How to merge SEOmatic object in Craft 3?
  
  (Asked by: username_0 on 2019-01-09)
  
  I'm using SEOmatic plugin in craft cms 3 and I need to set the seoTitle in my template but can't figure out how to do it...
  
  I know that in Craft 2, it was possible to merge the seomatic variable. I tried something like this :
  
  ```
  {% set seomatic = seomatic|merge({
      meta: {
          seoTitle: 'my title'
      }
  }) %}
  
  ```
  
  But it doesn't work because the merge filter only works with arrays or "Traversable", and I got object... I'm kind of stuck with this issue.
  
  Has anyone ever managed to make a merge of seoTitle?
  
  **Tags:** craft3, plugin-seomatic, merge
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-01-09. Score: 2 | Accepted answer
  
  Based on the [SEOmatic docs](https://github.com/nystudio107/craft-seomatic#seomatic-variables), something like this should do the trick nicely:
  
  ```
  {% do seomatic.meta.seoTitle("my title") %}
  
  ```
  
  > **Comments:**
  > **username_0**: Okay I feel really dumb to have missed this part of the doc... It worked thank you very much !  
  > **username_1**: No worries! To be completely honest, Andrew's plugin docs are a bit hard to go through since they're just one long README. Personally, I would love to see the docs migrated to his website where they could be organized a little better (using Vuepress or something similar). Would be easier to find and navigate to the section you want to read about...  
  > **username_2**: I agree. And that's exactly what I plan to do @username_1  
  > **username_1**: Lol - I wondered if you would see this  Thanks!   
  
  ---
  
  