How to add meta tag in typo3


 
For display meta tag in typo3 you have to follow below step.

It is just easy to set meta tag in your project..

For that you just have to add below typoscript in you setup.

You can add your meta data in your page property ( In Metadata Tab). That meta data will display in your meta tag.

page.meta {  
  description.field = description
  description.ifEmpty = Description of your project
  keywords.field = keywords
  keywords.ifEmpty =  Keyword of your project
  abstract.field = abstract
  abstract.ifEmpty = abstract of your project
} 

If description is empty then you need to display other field like title of subtitle then you can set below typoscript

  description.field=description
  description.ifEmpty{
    field= title // subtitle
    required = 1
  }

You can do same with keyword and abstract as well.

If you have any query then feel free to contact me at Jainish Senjaliya

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s