# Adding new Meta Directives to base.html.twig

**URL:** <https://forum.mautic.org/t/adding-new-meta-directives-to-base-html-twig/7990>\
**Category:** Product Support\
**Created:** [March 22, 2017, 3:17pm UTC](https://forum.mautic.org/t/adding-new-meta-directives-to-base-html-twig/7990 "2017-03-22T15:17:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eurogroup](https://avatars.discourse-cdn.com/v4/letter/e/e79b87/32.png) [@eurogroup](https://forum.mautic.org/u/eurogroup)\
**Post date:** [March 22, 2017, 3:17pm UTC](https://forum.mautic.org/t/adding-new-meta-directives-to-base-html-twig/7990/1 "2017-03-22T15:17:07Z")

</div>

Hi,  
  
  
  
In previous versions the base,html.twig has a directive as in code block 1 that seems to have been superseded by code block 2. My question is which is correct and is it possible to add further meta items to this area for example:

  
_"this one probably won't work as it is an image"???_  
  
  

Code:

{% if page is defined %} {{ page.getTitle() }} {% endif %}

Code:

{% if page is defined %} {pagetitle} {% endif %}

---

<div class="post-metadata">

**Author:** ![eurogroup](https://avatars.discourse-cdn.com/v4/letter/e/e79b87/32.png) [@eurogroup](https://forum.mautic.org/u/eurogroup)\
**Post date:** [March 22, 2017, 3:17pm UTC](https://forum.mautic.org/t/adding-new-meta-directives-to-base-html-twig/7990/2 "2017-03-22T15:17:07Z")

</div>

Hi,

In previous versions the base,html.twig has a directive as in code block 1 that seems to have been superseded by code block 2. My question is which is correct and is it possible to add further meta items to this area for example:

 [i]"this one probably won't work as it is an image"???[/i] 

` {% if page is defined %}
        <title>{{ page.getTitle() }}</title>
        <meta name="description" content="{{ page.getMetaDescription() }}">
        {% endif %}`

` {% if page is defined %}
        <title>{pagetitle}</title>
        <meta name="description" content="{pagemetadescription}">
        {% endif %}`
