Dedecms 分类信息地区名在列表标题title显示

跟对老板,待在你喜欢的气场里是非常重要的。对于一个陌生的客户来讲,销售人员要做的就是吸引客户的注意。客户不把你放在心上,你能卖出东西吗?
一.修改include\taglib\infolink.lib.php
主要增加了
$fields['puper'] = $em_nativeplaces[$toptype];
$fields['puper'] .= ' - ' . $em;
这段代码改成这样
以下为引用的内容:
//地区链接
if(empty($nativeplace))
{
foreach($em_nativeplaces as $eid=>$em)
{
if($eid % 500 != 0) continue;
$fields['nativeplace'] .= " <a rel="nofollow noopener noreferrer" href='{$baseurl}plus/list.php?channelid={$channelid}&tid={$typeid}&nativeplace={$eid}&infotype={$infotype}'>{$em}</a>\r\n";
}
}
else
{
$sontype = ( ($nativeplace % 500 != 0) ? $nativeplace : 0 );
$toptype = ( ($nativeplace % 500 == 0) ? $nativeplace : ( $nativeplace-($nativeplace%500) ) );
$fields['nativeplace'] = "<a rel="nofollow noopener noreferrer" href='{$baseurl}plus/list.php?channelid={$channelid}&tid={$typeid}&nativeplace={$toptype}&infotype={$infotype}'><b>{$em_nativeplaces[$toptype]}</b></a> >> ";
$fields['puper'] = $em_nativeplaces[$toptype];
foreach($em_nativeplaces as $eid=>$em)
{
if($eid < $toptype+1 || $eid > $toptype+499) continue;
if($eid == $nativeplace) {
$fields['nativeplace'] .= " <b>{$em}</b>\r\n";
$fields['puper'] .= ' - ' . $em;
}
else {
$fields['nativeplace'] .= " <a rel="nofollow noopener noreferrer" href='{$baseurl}plus/list.php?channelid={$channelid}&tid={$typeid}&nativeplace={$eid}&infotype={$infotype}'>{$em}</a>\r\n";
}
}
}
二、在列表调用里用
{dede:infolink}[field:puper/]{/dede:infolink}
调用
同样适用于其他联动类别

本文Dedecms 分类信息地区名在列表标题title显示到此结束。人的一生是漫长的,但关键的只有几步。小编再次感谢大家对我们的支持!