edgreenberg Posted July 31, 2013 Share Posted July 31, 2013 I have a custom field called "Server Name". In my $params, it shows up as $params['customfields']['Server Name"] I need to put it on a template. I was expecting to be able to do {$customfields.Server Name} but I'm worried about the space in the servername. What's the correct way to reference this? Thanks, Ed G 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted July 31, 2013 Share Posted July 31, 2013 I don't think you can reference an array variable with a space in it directly with smarty but you can create a variable that you can use to reference the name with the space in it. {assign var="mykey" value="Server Name"} {$customfields.$mykey} 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.