<p>Yep, you should definitely be able to do what you want.</p>

<p>What I do is I test the code in the actual Twig template used to display the page, and then once I have it working, I paste it into the SEOmatic field, and add <code>object.</code> in front of the <code>entry</code>.</p>

<p>e.g.: If this gives you the results you want in the template:</p>

<pre><code>{{ entry.title }} | {{ entry.parent.title }} | Company Name
</code></pre>

<p>Then when you paste it into SEOmatic's CP fields, it'd look like this:</p>

<pre><code>{{ object.entry.title }} | {{ object.entry.parent.title }} | Company Name
</code></pre>

<p>I find that this makes it easier to debug.</p>

CC BY-SA 4.0
2020-06-15T08:07:38.690Z
Thanks Andrew thats really great answer and helps a lot
Malcolm Maclean
CC BY-SA 4.0
2020-06-10T10:19:54.150Z
2020-06-10T10:19:54.150Z
andrew.welch
<p>I was wondering if it is possible to create a SEO Title Source in SEOmatic where the page title is output and then the parent/section page title e.g.:</p>

<p>{entry.title} | {{ entry.parent.title }} | Company Name</p>

<p>(The entry.title works but am not sure if its possible to get a parents page title)</p>

<p>Thanks
Malcolm</p>

<plugin-seomatic>
SEOmatic page parent?
# SEOmatic page parent?

(Asked by: username_0 on 2020-06-09)

I was wondering if it is possible to create a SEO Title Source in SEOmatic where the page title is output and then the parent/section page title e.g.:

{entry.title} | {{ entry.parent.title }} | Company Name

(The entry.title works but am not sure if its possible to get a parents page title)

Thanks
Malcolm

**Tags:** plugin-seomatic


---

## 1 answers

### Answer by username_1 on 2020-06-10. Score: 2 | Accepted answer

Yep, you should definitely be able to do what you want.
What I do is I test the code in the actual Twig template used to display the page, and then once I have it working, I paste it into the SEOmatic field, and add object. in front of the entry.
e.g.: If this gives you the results you want in the template:
{{ entry.title }} | {{ entry.parent.title }} | Company Name

Then when you paste it into SEOmatic's CP fields, it'd look like this:
{{ object.entry.title }} | {{ object.entry.parent.title }} | Company Name

I find that this makes it easier to debug.

> **Comments:**
> **username_0**: Thanks Andrew thats really great answer and helps a lot  

---

