I’m using one comment template to serve 4 or 5 weblogs. I’m using conditionals to display the weblog information and within those conditionals I am assigning a variable to help assign the weblog information to the comment form after.
So it kinda looks like this:
<div class="entry">
{exp:weblog:entries}
{if weblog_id=="15"}
{assign_variable:my_weblog="links"}
!--show entry info here--!
{/if}
{if weblog_id=="17"}
{assign_variable:my_weblog="audio"}
!--show entry info here--!
{/if}
{/exp:weblog:entries}
{exp:comment:form weblog="{my_weblog}" preview="blog/comment_preview"}
!--comment form---!
{/exp:comment:form}
Originally these were “advanced” conditionals (if’s and if:else’s) but after reading this link, switched them to basic conditionals (thinking the parse order would help).
Why is this not working and is there another way to make it happen?
