| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
Adding the date to Meta Description | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||
|
|||||||
|
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
|
|||||||||
|
|||||||||
|
You might want to try the '{php}' and '{/php}' tags.
http://www.smarty.net/docsv2/en/language.function.php.tpl
__________________
Vasilis Vrontisis X-Cart Development, Maintenance & Customization https://[URL="http://www.craftforweb.com"]craftforweb.com[/url] vasilis@craftforweb.com |
|||||||||
|
#3
|
|||||||
|
|||||||
|
Quote:
I agree ... but where and how ....
__________________
X-Cart 4.4.3 |
|||||||
|
#4
|
|||||||||
|
|||||||||
|
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
|
|||||||
|
|||||||
|
Quote:
__________________
X-Cart 4.4.3 |
|||||||
|
|
|||
|
X-Cart forums © 2001-2020
|
|||