Jump to content

Additional template calls


Robsta

Recommended Posts

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?

Link to comment
Share on other sites

Guest estelle

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...