DEDE 功能修改涉及文件

时间:2022-10-28 12:06:53

2016-7-5:面包屑导航

————typelink.class.php

涉及函数:function GetPositionLink($islink=true);

function LogicGetPosition($id,$islink);

 

2016-7-15: 分页样式修改 

———— arc.listview.class.php

涉及函数: 获取静态的分页列表

function GetPageListST($list_len,$listitem="index,end,pre,next,pageno")

 

2016-7-15:标题SEO优化。

————存在bug,生产静态页的列表出现标题乱码。

<title>{dede:field name='array' runphp='yes'}

                if(@me['seotitle']==''){

                   @me=@me['title'];

                }

                else

                {

                   @me=@me['seotitle'];

                }

                {/dede:field} - {dede:global.cfg_webname/}

</title>

 

2016-7-15:文章分页标题中加入(第XX页)

————

    {dede:field name='seotitle'/}(第{dede:pagelist listsize='0' listitem='pageno' function='html2text(@me)'/}页) - {dede:global.cfg_webname/}

 

2016-7-15:

————

修改/include/taglib/type.lib.php 加入语句

   if($row['topid']==0){$row['topid']=$row['id'];}

   /*获取根据id获取名称*/

   $row2 = $dsql->GetOne("SELECT typename FROM `#@__arctype` WHERE id='$row[topid]' ");

   $row['toptypeurl'] = GetOneTypeUrlA($row2);

   $row['toptypename'] = $row2['typename'];

 

 

模板中调用:

{dede:type}

[field:toptypename /]

{/dede:type}

标签的基础上进行修改。