18720358503
4000-399-004
发表日期:2021-04-04 02:07文章编辑:jianzhan浏览次数: 标签:
{dede:arclist row=6 titlelen=32} li a href= [field:arcurl/] [field:title/] /a /li {/dede:arclist}那麼大家启用自定字段名便是在这里个基本上添以改动来完成的,大家還是以最初提及的价钱为例子,实际标识主要表现为:
{dede:arclist row=8 titlelen=32 addfields= jiage channelid= 1 } li span ¥[field:jiage/]起 /span a href= [field:arcurl/] [field:title/] /a /li {/dede:arclist}
tr td height= 65 频道检索重要字: /td td textarea name= lanmukeywrod cols= 70 rows= 4 id= lanmukeywrod ?php echo $myrow[ lanmukeywrod ]? /textarea /td /tr这儿留意了。表格的name 和id 要和加上的 mysql表字段名一样,不可得话。也要多写个赋值编码。一样得话。默认设置dedecms会全自动取的,随后大家做最终一部,把数据信息加上进来。 大伙儿寻找: D:\www\dede\catalog_edit.php 文件目录将会和大伙儿不一样 也便是后台管理 里边的 catalog_edit.php,catalog_add.php catalog_edit.php要改的地区有:38行
$upquery = Update `dede_arctype` set issend= $issend , sortrank= $sortrank , typename= $typename , typedir= $typedir , isdefault= $isdefault , defaultname= $defaultname , issend= $issend , ishidden= $ishidden , channeltype= $channeltype , tempindex= $tempindex , templist= $templist , temparticle= $temparticle , namerule= $namerule , namerule2= $namerule2 , ispart= $ispart , corank= $corank , description= $description , keywords= $keywords , moresite= $moresite , `cross`= $cross , `content`= $content , `crossid`= $crossid , `smalltypes`= $smalltypes $uptopsql where id= $idsql句子里边加上大家刚刚的 字段名进来。也便是下边这一编码
$upquery = Update `dede_arctype` set issend= $issend , sortrank= $sortrank , typename= $typename , typedir= $typedir , isdefault= $isdefault , defaultname= $defaultname , issend= $issend , ishidden= $ishidden , channeltype= $channeltype , tempindex= $tempindex , templist= $templist , temparticle= $temparticle , namerule= $namerule , namerule2= $namerule2 , ispart= $ispart , corank= $corank , description= $description , keywords= $keywords , moresite= $moresite , `cross`= $cross , `content`= $content , `crossid`= $crossid , `smalltypes`= $smalltypes , `lanmukeywrod`= $lanmukeywrod $uptopsql where id= $id见到了 这一是加上的:`lanmukeywrod`= $lanmukeywrod ,这一是升级频道的。catalog_add.php加上。也是一样的方法。 变更详细地址有:63行和196行。也是一样方法。加上字段名信息内容 到sql里去 变更后的编码:63行:
$queryTemplate = insert into `dede_arctype`(reid,topid,sortrank,typename,typedir,isdefault,defaultname,issend,channeltype, tempindex,templist,temparticle,modname,namerule,namerule2,ispart,corank,description,keywords,moresite,siteurl,sitepath,ishidden,`cross`,`crossid`,`content`,`smalltypes`,`lanmukeywrod`) Values( ~reid~ , ~topid~ , ~rank~ , ~typename~ , ~typedir~ , $isdefault , $defaultname , $issend , $channeltype , $tempindex , $templist , $temparticle , default , $namerule , $namerule2 , 0 , 0 , , , 0 , , , 0 , 0 , 0 , , , $lanmukeywrod )加上了 lanmukeywrod 196行:
$in_query = insert into `dede_arctype`(reid,topid,sortrank,typename,typedir,isdefault,defaultname,issend,channeltype, tempindex,templist,temparticle,modname,namerule,namerule2, ispart,corank,description,keywords,moresite,siteurl,sitepath,ishidden,`cross`,`crossid`,`content`,`smalltypes`,`lanmukeywrod`) Values( $reid , $topid , $sortrank , $typename , $typedir , $isdefault , $defaultname , $issend , $channeltype , $tempindex , $templist , $temparticle , default , $namerule , $namerule2 , $ispart , $corank , $description , $keywords , $moresite , $siteurl , $sitepath , $ishidden , $cross , $crossid , $content , $smalltypes , $lanmukeywrod )
那样便可以了,难题处理了。