Robsta Posted November 25, 2005 Share Posted November 25, 2005 Hi, I was wondering if there was a way of calling into the template other modules used in cubecart. I'll give you an example. I would like to customise every page title using the automated content modules of the page. In doing this, I would like to add {TXT_PRODTITLE} to the global template index.tpl in the HTML Title tag so it appears at the beginning of the title bar. However this does not work. Any ideas on how to do this? Is there a list of the modules which are usable in the global templates? I notice within the products, it appears at the end. Is there a way of editing this order? Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted November 26, 2005 Share Posted November 26, 2005 The template variables, such as {TXT_PRODTITLE}, are defined in the "include" files. Each template file has a corresponding include file and can only use variables that are setup in that include file. So the global/index.tpl file can only use variables setup in index.php, and e.g. the content/viewProd.tpl file can only use variables setup in the includes/content/viewProd.inc.php file. So you would need to add code to index.php to setup TXT_PRODTITLE. Have you looked at the Search Engine Friendly mod for 3.0.5/3.0.6? This free mod adds the product name, category and site name to the page titles. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.