value/', '$$1', $o->access_path); // if the path of the var is $_smarty_tpl->tpl_vars[...]->value then just use the smarty var name for the title if ($o->access_path !== $replace) { $o->name = $replace; } } } }