| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Adding the date to Meta Description | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Adding the date to Meta Description
Been searching for a simple answer for this one - I'm sure there is one!
In meta.pl there is the code Code:
Now I want to add the date (generated by php with something like PHP Code:
<meta name="description" content="4th July 2011 - [description for page from database]" /> Is there a way to do this in Smarty?
__________________
X-Cart 4.4.3 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Adding the date to Meta Description
You might want to try the '{php}' and '{/php}' tags.
http://www.smarty.net/docsv2/en/language.function.php.tpl
__________________
Vasilis Vrod. X-Cart Development, Maintenance & Customization www.craftforweb.com vasilis@craftforweb.com |
|||||||||
#3
|
|||||||
|
|||||||
Re: Adding the date to Meta Description
Quote:
I agree ... but where and how ....
__________________
X-Cart 4.4.3 |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Adding the date to Meta Description
Using {php} tags in smarty is not recommended. Better modify /include/templater/plugins/function.meta.php to include whatever you want in the meta description
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#5
|
|||||||
|
|||||||
Re: Adding the date to Meta Description
Quote:
__________________
X-Cart 4.4.3 |
|||||||
|
|||
X-Cart forums © 2001-2020
|