Design Themes Modification When Updating from CNCat 4.1.3 to CNCat 4.2
extended_article.tpl
Modifications:
- Users comments and rates displaying added.
- Form for users rate and adding comments implemented.
New Elements:
- Templates ext_article_comments_*.
- $CNCAT[item][item_rating_users] – users rate;
- $CNCAT[item][item_votes_count] – number of users votes;
- $CNCAT[item][item_com_count] – number of comments.
Apply Modifications:
- Below the code
{cn_str($CNCAT[item][item_descr_full])}
add
{DISPLAY COMMENTS}
- Above the code
<tr><td class="name">{$CNCAT[lang][jumps_to]}:</td>
add
<tr>
<td class="name">{$CNCAT[lang][users_rating]}:</td>
<td class="text">
{IF $CNCAT[item][item_rating_users] > 0}
{cn_str($CNCAT[item][item_rating_users])} ({$CNCAT[lang][votes_count]}: {$CNCAT[item][item_votes_count]})
{ELSE}
{$CNCAT[lang][no]}
{ENDIF}
</td>
</tr>
- Copy all temlates starting with ext_article_comments from the extended_article.tpl file of version 4.2.