I want to display cms block if product has the attribute set to yes. A product may have multiple attributes set to yes, and may display multiple cms blocks. Attribute label text will be a BlockId. It may also be another proposed method. How do I see it:
<?php
if(($_product->getAttributeText('*') == "yes")){
echo $this->getLayout()->createBlock('cms/block')->setBlockID(getAttributeText())->tohtml();
}
?>