A little trick to automatically add anchor text to your dedecms breadcrumbs

Source: Internet
Author: User

Intermediary transaction SEO diagnosis Taobao guest Cloud host technology Hall

Last year due to some personal reasons, resulting in a website for more than a year has not been updated, and now a new revision, the individual or more accustomed to using Dede, feeling Dede function is still very powerful, the following for everyone to tidy up a number of me in the making template when a SEO tips, The Dede version is V5.7, and the other revisions should be similar.

Breadcrumb navigation (site channel navigation) Add title=*** Anchor text method:

Sometimes our site name is not the same as the keyword, but want to add anchor text in breadcrumbs, you can use the following code to achieve:

Method One:

<a title= ' keyword ' href= ' {dede:global.cfg_basehost/} ' >{dede:global.cfg_webname/}</a> > {dede:type}<a href= "[Field:typelink/]" >[field:typename/]</a> {/dede:type}

{dede:global.cfg_basehost/} is the website address {dede:global.cfg_webname/} is the website name, also may use the website name to replace directly, uses the label is in order to be convenient later does not have to revise after the modification template Edition, after the { Dede:type}<a href= "[Field:typelink/]" >[field:typename/]</a> {/dede:type} is the name and URL that invokes the current channel.

Method Two: Directly modify {Dede:field name= ' position '/} effect

Let's take a look at the effect chart.

  

The Dede call navigation is labeled: {Dede:field name= ' position '/} generates HTML static files after the page source code is this way

<a href= ' http://www.***.com ' > Home </a> > <a href= ' http://www.***.com/pindao/' > Channel name </a>

If we want to achieve the effect of the above diagram, please refer to my practice.

First login site background system-Site Settings

  

Homepage link blank, homepage link name fill in your own website name.

Then modify the typelink.class.php recommended in the Include Directory EditPlus edit, do not use Notepad.

Code 113 in line plus title= ' keyword ' attention is half-width ' no ', otherwise the program will be wrong.

  

After the modification, upload to the space, and then update an article and then look at the Web page source code, like the following this look.

<a title= ' keyword ' href= ' http://www.***.com ' > website name </a> > <a href= ' http://www.***.com/pindao/' > channel name </a> Lichuan Online (http://www.445400.com) original tutorial, reproduced please indicate the source.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.