![]() |
extra_field value in page title?
Hi everyone,
Is it possible to include the data from extra_field into the page's title? We have some important SEO words entered in the extra_field under each product and it would be great if we could show these values in the page title as well. Using X-Cart v4.2.0. Thanks in advance for any tips! |
Re: extra_field value in page title?
not sure with CDSEO. if you are using default xcart clean urls it should be a metter of editing the template that puts out the title
|
Re: extra_field value in page title?
Thank you for the input. All I can find is {$html_page_title|escape} in service_head.tpl. I have no idea how to edit this so that it will include the extra_field from the product page (in product.tpl I used {$extra_fields[2].field_value} to show the value on the product page).
Edit, after some playing around with some code from our old website I got it to work, somewhat. It's not perfect yet but it does display the extra_field. Only problem, it does it twice.. In service_head.tpl: Code:
<title> This outputs the following title in the product list pages: PRODUCT EXTRA_FIELD_VALUE1 - CATEGORY EXTRA_FIELD_VALUE1 - COMPANYNAME Any advice on how to prevent the extra_field value from being repeated? Thanks in advance :) |
All times are GMT -8. The time now is 06:52 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.