fruizz Posted March 23, 2012 Share Posted March 23, 2012 Bonjour à tous, J'essaye despérement de modifier les balises meta des pages de mon module sans succès. Voilà mon problème: J'ai créer un module permettant d'accèder à une page statique ( sur ce principe là http://www.mywatchy....on.mywatchy.php) J'essaie de forcer l'assignation dans smarty de mes variables meta dans la php de la page comme ceci: //Gestion des balise meta $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"))); } Lorsque je lance la console de debug smarty de ma page j'obtiens pour ces variables: $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" Donc apparement tout se passe bien sauf que mes metas ne s'affiche pas et le title affiché est le nom du site. Avez-vous une idée ? A quel endroit je me suis planté ? Merci d'avance pour vos réponses ;-) Link to comment Share on other sites More sharing options...
fruizz Posted March 26, 2012 Author Share Posted March 26, 2012 Up ;-) Link to comment Share on other sites More sharing options...
fruizz Posted March 27, 2012 Author Share Posted March 27, 2012 Pas de réponse ? est ce que j'explique mal mon problème ? est ce que c'est irréalisable ? au moins une réponse me mettant sur la voie serait appréciable ;-) Link to comment Share on other sites More sharing options...
fruizz Posted April 2, 2012 Author Share Posted April 2, 2012 Les forums prestashop sont assez désesperant au niveau activité ... Link to comment Share on other sites More sharing options...
slider19 Posted May 10, 2012 Share Posted May 10, 2012 salut, tu as jeter un oeil dans la BDD mysql ?? exemple ces balises meta s'y trouvent !! name="keywords" content="boutique, prestashop" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now