Comments

как создать условие, если Тип топика к примеру QA то подключается шаблон {include file="comments/comment.qa-tree.tpl"

{extends file="_index.tpl"}

{block name="layout_vars"}
{$menu="topics"}
{/block}

{block name="layout_content"}

{include file="topics/topic.show.tpl"}

{include file="comments/comment.tree.tpl"
iTargetId=$oTopic->getId()
iAuthorId=$oTopic->getUserId()
sAuthorNotice=$aLang.topic_author
sTargetType="topic"
iCountComment=$oTopic->getCountComment()
sDateReadLast=$oTopic->getDateRead()
bAllowToComment=(!E::IsUser() && !$oTopic->getForbidComment()) || (E::IsUser() && !$oTopic->getForbidComment() && $bAllowToComment)
sNoticeNotAllow=$aLang.topic_comment_notallow
sNoticeCommentAdd=$aLang.topic_comment_add
bAllowSubscribe=true
oSubscribeComment=$oTopic->getSubscribeNewComment()
oTrackComment=$oTopic->getTrackNewComment()
aPagingCmt=$aPagingCmt
}

{/block}