> 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

extended.tpl

Modifications:

New Elements:

Apply Modifications:

  1. To display users rate results, above the code

           <tr><td class="name">{$CNCAT[lang][jumps_to]}

add the following code:

           {IF $CNCAT[config][rating_enable]}

           <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>

           {ENDIF}

  1. To display comments and the form for adding comments and rates, below the following code

           {DISPLAY EXTFIELDS}

add

           {DISPLAY COMMENTS}

  1. Copy all templates starting with ext_comment, ext_comments from the extended.tpl file of version 4.2.

Previous | Table of Contents  | Next