| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
extra_field value in page title? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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!
__________________
www.qualitylamps.eu X-Cart Gold 4.1.8, PHP 5.2.6, MySQL 5.0.51a, Apache 2.2.9 www.vervangjelamp.nl X-Cart Gold 4.2.0, PHP 5.2.6, MySQL 5.0.37-standard, Apache/2 Sorry for the weird user name, I registered it by mistake ![]() |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
![]() 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:
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 ![]()
__________________
www.qualitylamps.eu X-Cart Gold 4.1.8, PHP 5.2.6, MySQL 5.0.51a, Apache 2.2.9 www.vervangjelamp.nl X-Cart Gold 4.2.0, PHP 5.2.6, MySQL 5.0.37-standard, Apache/2 Sorry for the weird user name, I registered it by mistake ![]() |
|||||||
|
|||
X-Cart forums © 2001-2020
|