| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
display meta_title field on embedded pages | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
display meta_title field on embedded pages
I currently have a "custom title mod" set up in my customer/home.tpl like this
Code:
I have added a new field in the database table xcart_pages called meta_title. I want to change this part Code:
to look more like Code:
so it will display the info from the meta_title field. I'm not sure what php file I need to update so that the meta_title variable will be defined and displayed. Can anyone help with that?
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3 mods: reCaptcha running on UNIX www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2 mods: reCaptcha cdseo pro running on UNIX |
|||||||
#2
|
|||||||||
|
|||||||||
Re: display meta_title field on embedded pages
The {$page_data} is defined in "<xcart_dir>/pages.php" script.
If you've added the "meta_title" field to the "xcart_pages" table. It should appear in {$page_data} automatically and can be accessed via {$page_data.meta_title} Smarty variable.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
|||
X-Cart forums © 2001-2020
|