留意:本实例教程只在DedeCMS V5.6上检测过,v5.7sp1得话一般也会通用性,请自主检测! 完成方式: 1. link.lib.php,寻找: require_once(DEDEROOT./data/); 在其下边加上: require_once(DEDEROOT./data/en
留意:本实例教程只在DedeCMS V5.6上检测过,v5.7sp1得话一般也会通用性,请自主检测! 完成方式: 1. link.lib.php,寻找: require_once(DEDEROOT./data/); 在其下边加上: require_once(DEDEROOT./data/enums/自定...
留意:本实例教程只在DedeCMS V5.6上检测过,v5.7sp1得话一般也会通用性,请自主检测!
完成方式:
1. link.lib.php,寻找:
require_once(DEDEROOT. /data/
在其下边加上:
require_once(DEDEROOT. /data/
link($ctag,$refObj)
{
global $dsql,$nativeplace,$infotype,$自定连动类型字段名 名,$hasSetEnumJs,$cfg_cmspath,$cfg_mainsite;
global $em_nativeplaces,$em_infotypes,$em_自定连动类型字段名名s; //认清楚,这儿后边的个S
$fields = array( nativeplace = , infotype = , 自定连动类型字段名名 = , typeid = $typeid, channelid = $channelid, linkallplace = , linkalltype = , linkeall自定连动类型字段名名 =
$fields[ nativeplace ] = $fields[ infotype ] = $fields[ 自定连动类型字段名名 ] =
寻找:
if(is_array($ctp- CTags))
在其下边加上:
折叠进行PHP 编码拷贝內容到剪贴板
$fields[ linkalltype ] = a href= {$baseurl}?channelid={$channelid} tid={$typeid} amp;nativeplace={$nativeplace} 不限 /a
//下边加上一行
$fields[ linkeall自定连动类型字段名名 ] = a href= {$baseurl}?channelid={$channelid} tid={$typeid} amp;nativeplace={$nativeplace} 不限 /a
//自定连动类型字段名连接
if(emptyempty($自定连动类型字段名名))
{
foreach($em_自定连动类型字段名名s as $eid= $em)
{
if($eid % 500 != 0) continue;
$fields[ 自定连动类型字段名名 ] .= a href= {$baseurl}?channelid={$channelid} tid={$typeid} amp;自定连动类型字段名名={$eid} nativeplace={$nativeplace} {$em} /a gt;
}
}
dedecms模版,dedecms公司模版,dedecms新闻资讯模版,高档HTML5响应式模版,dedecms手机上模版,织梦cms模版实例教程,网站模版,网页页面模版,完全免费网页页面模版