View Single Post
  #2  
Old 03-24-2011, 11:24 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Re: combining truncate and replace

I got replacing the commas worked out and truncating to the 100th character while keeping the last full word intact. Looks like this now.

Code:
{$_meta_keywords|truncate:"100":"":false|replace:',':''|escape}

using this to create unique alt tags for my logo image on each page. The alt tag will match with the first few words of my meta_keywords on each page.
__________________
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
Reply With Quote