> Main > Products and Services > Purchase > Company
English / Russian

Documentation

Design Themes Modification When Updating from CNCat 4.1.3 to CNCat 4.2

© "CN-Software" Ltd. 2002-2008
support@cn-software.com
www.cn-software.com
Previous | Table of Contents  | Next

item.tpl

Modifications:

Ability to rate web-resources has been added for a user, links Rate, Comments.

New Elements:

Apply Modifications:

  1. Add new attributes to the item template header. To do this, replace

   (ITEM  [item_id, item_title, item_rating_moder,

with

   (ITEM  [item_id, item_title, item_rating_moder, item_rating_users, item_votes_count, item_com_count

  1. Delete the following code:

                           {IF $CNCAT[item][item_rating_moder]}

                                {$CNCAT[item][item_rating_moder]}

                           {ENDIF}

  1. Below the following code part

                           {IF $CNCAT[item][link_rating_cy]>=0}

                                {$CNCAT[lang][cy]}: {$CNCAT[item][link_rating_cy]}  

                           {ENDIF}

add:

                           {IF $CNCAT[item][item_rating_moder]>0 || $CNCAT[item][item_rating_users]>0}

                               {$CNCAT[lang][rating]}: <span title="{$CNCAT[lang][administrator]}">{IF $CNCAT[item][item_rating_moder]>0}{$CNCAT[item][item_rating_moder]}{ELSE}{$CNCAT[lang][no]}{ENDIF}</span>/<span title="{$CNCAT[lang][users]}">{IF $CNCAT[item][item_rating_users]>0}{$CNCAT[item][item_rating_users]}{ELSE}{$CNCAT[lang][no]}{ENDIF}</span>

                           {ENDIF}

 

                           {IF $CNCAT[config][rating_enable]}

                               | <a href="{cn_str($CNCAT[item][_ext_url])}#vote">{$CNCAT[lang][appreciate]}</a>

                           {ENDIF}

 

                           {IF $CNCAT[config][comments_links_enable]}

                               | <a href="{cn_str($CNCAT[item][_ext_url])}#comments">{$CNCAT[lang][comments]} {IF $CNCAT[item][item_com_count]}(<strong>{$CNCAT[item][item_com_count]}</strong>){ENDIF}</a>

                           {ENDIF}


Previous | Table of Contents  | Next