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

Documentation

Design Themes Modification When Updating from CNCat 4.1.2 to CNCat 4.1.3

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

extended_article.tpl

Modifications:

Ability to display additional fields has been added.

New Elements:

Apply Modifications:

  1. Insert the code for displaying additional fields into the ext:

{DISPLAY EXTFIELDS}

below the string

           <tr><td class="name">{$CNCAT[lang][jumps_from]}:</td><td class="text">{cn_str($CNCAT[item][link_jumps_from])}</td></tr>

  1. At the end of the file, add ext_ext_field template:

{TEMPLATE ext_ext_field}

   {IF $CNCAT[extfield][type] == 1 || $CNCAT[extfield][type] == 2}

       {IF is_numeric($CNCAT[extfield][value])}

           <tr><td class="name">{cn_str($CNCAT[extfield][title])}:</td><td class="text">{cn_str($CNCAT[extfield][value])}</td></tr>

       {ENDIF}

   {ELSE}

       {IF $CNCAT[extfield][value]}

           {IF $CNCAT[extfield][type] == 3}

               <tr><td class="name">{cn_str($CNCAT[extfield][title])}:</td><td class="text">{cn_str($CNCAT[extfield][value])}</td></tr>

           {ENDIF}

           {IF $CNCAT[extfield][type] == 4}

               <tr><td class="name">{cn_str($CNCAT[extfield][title])}:</td><td class="text">{cn_date($CNCAT[extfield][value])}</td></tr>

           {ENDIF}

           {IF $CNCAT[extfield][type] == 5}

               <tr><td class="name">{cn_str($CNCAT[extfield][title])}:</td><td class="text">{cn_str($CNCAT[extfield][value])}</td></tr>

           {ENDIF}

       {ENDIF}

   {ENDIF}

{/TEMPLATE}


Previous | Table of Contents  | Next