dedecms breadcrumbs modification method

Done seo friends should know, breadcrumbs site, site ranking is very helpful for users to read body is also very good.

The following share dede site breadcrumbs modification method:

To delete a site such as weaving dreams excess breadcrumbs>
remove breadcrumbs final> (I change it became - Note that there are spaces at the regular time to note down)
{dede:field name='position' runphp='yes'}@me=preg_replace("/ - $/imU","",@me);{/dede:field}

Delete the current location in a hyperlink?
Leaving only the text

Such as:
Home> Company Profile> Organizational Structure

A modification method:

PHP
文件\include\arc.archives.class.php 文件\include\arc.listview.class.php 文件\include\arc.partview.class.php

The three documents inside the phrase

PHP
Fields['position'] = $this->TypeLink->GetPositionLink(true);

Have changed

PHP
Fields['position'] = $this->TypeLink->GetPositionLink(false);

Modify Method Two:

{dede:field name='position' function="strip_tags(@me)"/}

或者

{dede:field name='position' function="html2txt(@me)"/}

PHP
您当前所在的位置:

<a href="/">本站首页</a> >{dede:channel type='top' currentstyle="<a href='~typelink~'>~typename~</a>"}{/dede:channel} >{dede:channel currentstyle="<a href='#'>~typename~</a>"}{/dede:channel}

 

Guess you like

Origin www.cnblogs.com/cg123/p/11979799.html