Thread: Smarty help
View Single Post
  #1  
Old 02-19-2009, 04:57 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Smarty help

Ok, this one is perplexing me - one of you Smarty gurus should be able to help. Using Firetank's featured product manager for some category-specific featured product groups. I want to call the template automatically based on the category name, so I use this in subcategories.tpl:

{include file="customer/fts_featured_products.tpl" group="`$current_category.category`"}

Works great - except for categories with multiple words in them. The Firetank mod doesn't accept spaces for the group, just _ characters. So I need to replace any spaces in the Smarty variable with _. I've tried using |replace, but with Smarty inside Smarty it is getting a bit crazy and spitting out SQL errors. Any help? Thanks!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote