<p>To override the Default meta data with your field type the only addition you need in your code is to pass the <code>entry.id</code> to your <code>craft.sproutSeo.meta</code> tag:</p>

<pre><code>{% do craft.sproutSeo.meta({ 
    id: entry.id,    
    default: 'default',
    title: entry.title,
    description: entry.body|striptags|slice(0, 160)
}) %}
</code></pre>

<p>Once you identify the <code>entry.id</code> Sprout SEO will handle the rest, prioritizing any values you have in your field types above any values in your Defaults or Code Overrides.</p>

CC BY-SA 3.0
2015-11-22T17:45:32.537Z
Ah, so you have to specify the ```entry.id```. That makes sense. Thank you so much.
Isaac
CC BY-SA 3.0
2015-11-22T17:23:44.613Z
2015-11-22T17:23:44.613Z
Ben Parizek
<p>I was wondering if someone could help me find a solution to this. I didn't see it in the docs. Perhaps I missed it...</p>

<p>I created an entry type with the field type <code>Meta: Basic</code>. I would like to use this to override the meta defaults at the entry level. It doesn't appear to do it on it's own and accessing the content via <code>entry.metaBasic.description</code> doesn't work either. What am I doing wrong? Thanks in advance.</p>

<plugin-sproutseo>
Using field types to override meta defaults
# Using field types to override meta defaults

(Asked by: username_0 on 2015-11-22)

I was wondering if someone could help me find a solution to this. I didn't see it in the docs. Perhaps I missed it...

I created an entry type with the field type `Meta: Basic`. I would like to use this to override the meta defaults at the entry level. It doesn't appear to do it on it's own and accessing the content via `entry.metaBasic.description` doesn't work either. What am I doing wrong? Thanks in advance.

**Tags:** plugin-sproutseo


---

## 1 answers

### Answer by username_1 on 2015-11-22. Score: 1 | Accepted answer

To override the Default meta data with your field type the only addition you need in your code is to pass the entry.id to your craft.sproutSeo.meta tag:
{% do craft.sproutSeo.meta({ 
    id: entry.id,    
    default: 'default',
    title: entry.title,
    description: entry.body|striptags|slice(0, 160)
}) %}

Once you identify the entry.id Sprout SEO will handle the rest, prioritizing any values you have in your field types above any values in your Defaults or Code Overrides.

> **Comments:**
> **username_0**: Ah, so you have to specify the ```entry.id```. That makes sense. Thank you so much.  

---

