Hello !
I try to add metatags (title, description, keywords) on my module but i didn't success
Here is my problem:
I created a module to access a static page similar to that site http://www.mywatchy....on.mywatchy.php
I try to force the meta in smarty like this :
//Meta tags
$mytitle="Mon super titre";
$mydescription="Ma super description";
$mykeywords="Mes supers mots clés";
$smarty->assign(array(
'meta_title' => mb_convert_encoding($mytitle, "UTF-8"),
'meta_description' => mb_convert_encoding($mydescription, "UTF-8"),
'meta_keywords' => mb_convert_encoding($mykeywords, "UTF-8")));
}
When I throw the smarty debug console on my page I get this
$meta_description Smarty_Variable Object (3)
->value = "Ma super description"
->nocache = false
->scope = "Smarty root"
$meta_keywords Smarty_Variable Object (3)
->value = "Mes supers mots clés"
->nocache = false
->scope = "Smarty root"
$meta_title Smarty_Variable Object (3)
->value = "Mon super titre"
->nocache = false
->scope = "Smarty root"
But the meta are not display and the title is still the website's name.
Do you have any idea ?