Can I assign a template group based on a category in a post? Something like:
{exp:weblog:entries orderby="date" sort="desc" category="not 45|57|58|59|60|61|62|63" limit="5"}
{if category=="21|22|23|24|25|26|31|32|33|34|35|36|37|38|39"}
{assign_variable:my_template_group="research"}
{if:elseif category=="30|52"}
{assign_variable:my_template_group="programs"}
{if:elseif category=="55|56"}
{assign_variable:my_template_group="services"}
{if:else category=="36"}
{assign_variable:my_template_group="movies"}
{/if}
<a href="http://{title_permalink={my_template_group}/comments}">{title}</a>
{body}
{The above code does not work and actually results in a blank page generated.