Docs/News Catalog-Fields
  • imcat(贴心猫) Catalog-Fields --- [Top]
    • Description
        -> In this part, we will set the extra params for the Catalog or Grade, while select the Catalog or Grade, it will show more params for selected items
        -> like as products, each type of items has their own params

    • Setp-1: Set Param
        -> File: \code\cfgs\sycfg\sy_frame.php
        -> Param: $resfmt, added some model ...

    • Setp-2: Extra Script
        -> In script, like these: users_form_show.php / docs_form_show.php, they used the extra params.
        -> (Notice, add the fields in the db-table)

    if($mod=='cargo'){
        fldView::relat("relpb,fm[catid],fm[brand]","fm[xinghao],$mod,$did"); 
    }
    if($mod=='keres'){
        fldView::relat("relyc,fm[ygrade],fm[course]");
    }
    if(in_array($mod,array('about','demo'))){
        fldView::relat("fm[catid]","fm[catid],$mod,$did");
    }
    if(in_array($mod,array('company','govern','organize'))){
        fldView::relat("fm[grade]","fm[miuid],$mod,$uname,fm[grade]"); 
    }
    • ● Setp-3: Show in Front
        -> In front page, according to the template, display freely, can refer the product in front.

Notice: These pages at `/dev.php` is the Manual for Imcat, Welcome to `Faqs` Exchange experience!

QQGroup:607070548; Copyright © 2011-2018 txjia.com All rights reserved.

Run:0.000/38.872(ms); 0(sql)/1.96(MB); doc:c_demo/advset_basic; Upd:2024-04-19 07:11:03