3445 Posts in 1031 Topics by 872 members
|Go to End|
18 June 2010 at 7:04pm
I need to know if something like this is possible. I am trying to convert the position of an item in a control from a number to a letter of the alphabet.
<% control FAQs %>
<% end_control %>
This currently throws me "Parse error: syntax error, unexpected T_STRING".
The function works as expected when passing in an integer: $getnumberToLetter(2)
Perhaps im on the wrong track entirely.
18 June 2010 at 9:34pm
No you cannot pass variables into SS template tags (must be defined a constant). EG $Foo(Bar) will work but $Foo($Bar) won't. This is because the template parser only runs over the code once. So it will look for a function Foo and will pass a function Bar too it which is annoying but its one of the limitations of SSViewer. You'll have to find another way to do what you want.
|Go to Top|