Displaying Page Attribute with One or Multiple values

Permalink
I'm wanting to display a Select Attribute that allows multiple values. Where I'm having difficulty is that I'm wanting it display one way if there is only one value select and another way if there are multiple values selected. I'm using this code for the single value display:
<?php if (count($c->getCollectionAttributeValue('bow_neighborhood')) == 1) { ?>
     Single Value Display        
<?php } ?>

and this code for the multiple value display:
<?php if (count($c->getCollectionAttributeValue('bow_neighborhood')) > 1) { ?>
     Multiple Value Display        
<?php } ?>

However, the count always equals one, even if an attribute has multiple values. I feel like I'm missing something somewhere, but I can't figure out what it is.

drumrby
View Replies: