Guest Posted May 18, 2010 Share Posted May 18, 2010 After a bit of help relating to $headcontent and headertags please. Searched everywhere I can think of but nothings coming up. We've got AddThis on our product_info pages, but to work correctly with Facebook we need to add metatags into the header for the description and default thumbnail. Without STS it would be a simple case of adding this into the <head> section of /product_info_php <link rel="image_src" href="<?php echo DIR_WS_IMAGES . $product_info['products_image']; ?>" /> But as I understand it, anything in the <head> tag gets wiped and overwritten by the contents of the product_info.php.html template. A bit more snooping led me to $this->template['headcontent'] = $this->template['headcontent'].$this->template['headertags']. "\n"; ; in classes/sts.php. My idea was if I could insert the data from product_info.php into ['headertags'] it would carry it across and appear in the rendered header. I got through /includes/modules/sts_inc/headertags.php into /includes/functions/header_tags.php before finding a wall of code and giving up. Is there a simple way to pass vars from one file to the other? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.