maluma Posted December 3, 2013 Share Posted December 3, 2013 Hey guys, I'm trying to develop a module for prestashop 1.5. I need to add a xml namespace to the html-tag like the one for facebook: <html xmlns:fb="http://ogp.me/ns/fb#"> Is it possible to do that without touching the template? Is there maybe a prestashop function like the one to add stylesheets: $this->context->controller->addCSS(($this->_path).'blocksharegplus.css', 'all'); It would be great if anyone could help me or has an idea to sove that problem. Greetings Maluma Link to comment Share on other sites More sharing options...
vekia Posted December 3, 2013 Share Posted December 3, 2013 there is no function in prestashop core to add params to <html> object. all you have to do is modification of header.tpl file as far as i know open graph tags works also without this definition of html object, no worries Link to comment Share on other sites More sharing options...
maluma Posted December 3, 2013 Author Share Posted December 3, 2013 Thanks for the fast answer! all you have to do is modification of header.tpl file I thought about that, but if I sell the module, the user has to use my header.tpl and it could get into conflict with other templates. as far as i know open graph tags works also without this definition of html object, no worries Yeah, but this was just an example. The tag I want to insert will be necessary. 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