First, we need to know what datatypes your using. I think that in your case, attr1 is a ezselection one.
If it's the case, you have to know that $node.data_map.attr1.content will contain the index of the selection, and not the text. So you should test equality between $view_parameters.param1 and $option.id, and not $option.name.
Another thing, whatever which datatype is used, there is a missing parenthesis in {if eq($view_parameters.param1, $option.name}selected{/if} : the eq operator is not closed.
I don't see what could be the problem in your usage of the second parameter, but maybe it's related to the problem above ... the HTML generated code is maybe a bit altered by it.
You must be logged in to post messages in this topic!