valuePosition;" and save it."/> valuePosition;" and save it.">

Home  >  Article  >  CMS Tutorial  >  How to remove the greater than sign at the end of the dede column page's breadcrumb navigation

How to remove the greater than sign at the end of the dede column page's breadcrumb navigation

藏色散人
藏色散人Original
2019-12-21 10:04:461773browse

How to remove the greater than sign at the end of the dede column page's breadcrumb navigation

How to remove the greater than sign at the end of the dede column page's breadcrumb navigation?

This article will introduce to you how DedeCms removes the greater than sign at the end of the column page breadcrumb navigation. Here is a good example for you to refer to

Recommended learning: Dreamweavercms

Weaver Dream DedeCms removes the last separator ">" from the column page breadcrumb navigation

Breadcrumb navigation call label { dede:field name='position' /},

When the breadcrumb navigation is called in the column page, the delimiter symbol ">" will appear at the end, such as: Homepage> DedeCms Template>

Use the following two methods to replace the final separator ">" and use the following code to call the breadcrumb navigation tag:

The code is as follows:

{dede:field name='position' runphp='yes'} 
$a=mb_strlen(@me); //计算字符串的长度 
@me=cn_substr(@me,$a-1,-1); //截取字符 
{/dede:field}

Or modify the system file and edit Open the include/typelink.class.php file.

Search:

The code is as follows:

return $this->valuePosition.$this->SplitSymbol;

Modify as:

The code is as follows:

return $this->valuePosition;

The above is the detailed content of How to remove the greater than sign at the end of the dede column page's breadcrumb navigation. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn