<p>So for Craft 2.x, what I'd suggest is just doing this via Twig. This is discussed here: <a href="https://github.com/nystudio107/seomatic/wiki/10.-Dynamic-Twig-SEO-Meta" rel="nofollow noreferrer">https://github.com/nystudio107/seomatic/wiki/10.-Dynamic-Twig-SEO-Meta</a></p>

CC BY-SA 4.0
2018-11-27T18:34:48.257Z
2018-11-27T18:34:48.257Z
andrew.welch
<p>We have a Craft site with nearly 800 entries. For SEO purposes we need to change the page title and page (SEO) description for each entry, a laborious task to say the least. </p>

<p>Is there a way to have, say, a PageTitle variable which we apply to all entries with SEOmatic, and if we need to change the structure of the title, we just have to change the PageTitle variable once. This variable itself would have variables within it, e.g:</p>

<blockquote>
  <p>Beautiful {villaBedrooms} bedroom villa in {villaLocation.last.title}, Bali. From just ${villaPrice}. {villaHook} </p>
</blockquote>

CC BY-SA 4.0
2018-11-27T04:26:37.730Z
Is this SEOmatic for Craft 3.x, or Craft 2.x?
andrew.welch
CC BY-SA 4.0
2018-11-27T05:02:39.423Z
Sorry, this is Craft 2.7 and SEOmatic 1.1.56

Kind regards,
Matt
Matt
<variable><globals><plugin-seomatic>
SEOmatic and Global Variables
# SEOmatic and Global Variables

(Asked by: username_0 on 2018-11-27)

We have a Craft site with nearly 800 entries. For SEO purposes we need to change the page title and page (SEO) description for each entry, a laborious task to say the least.

Is there a way to have, say, a PageTitle variable which we apply to all entries with SEOmatic, and if we need to change the structure of the title, we just have to change the PageTitle variable once. This variable itself would have variables within it, e.g:

> Beautiful {villaBedrooms} bedroom villa in {villaLocation.last.title}, Bali. From just ${villaPrice}. {villaHook}

**Tags:** variable, globals, plugin-seomatic
> **Comments:**
> **username_1**: Is this SEOmatic for Craft 3.x, or Craft 2.x?  
> **username_0**: Sorry, this is Craft 2.7 and SEOmatic 1.1.56  Kind regards, Matt  

---

## 1 answers

### Answer by username_1 on 2018-11-27. Score: 0 | Accepted answer

So for Craft 2.x, what I'd suggest is just doing this via Twig. This is discussed here: <https://github.com/nystudio107/seomatic/wiki/10.-Dynamic-Twig-SEO-Meta>


---

