Main menu
WalkswithMeJoomlaHow to set meta data of a page in Joomla

4 thoughts on “How to set meta data of a page in Joomla

  1. $document->setMetaData(‘og:type’, ‘website’, ‘property’);

    Thank you very much for your advice!
    Very useful!

  2. There is another part when you want to add any property to meta tag as:

    $document->setMetaData('title', "Your meta title");

    will do-

    but there are cases(as in open graph, when you want to add property like –

    For this you can use –

    $document->setMetaData('og:type', 'website', 'property');,

    or

    $type='';
    $document->addCustomTag($type);

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 

FacebookTwitterGoogle+RSS