dede:field name=position How to remove the last greater than symbol?
dede provides the breadcrumb function . But there is always a '>' symbol at the end. It’s very annoying, here’s a good way to get rid of it
Recommended learning:梦Weavercms
Things:
dede provides breadcrumbs function. But there is always a '>' symbol at the end. Very annoying. Target to kill it.
The first solution: 1. Modify this symbol in the system parameters.
The second solution: 2. Use the truncation character and runphp operation (there are many on Baidu on the Internet, but unfortunately I did not test successfully).
The third solution: 3. Modify the underlying code. (This is what I used and tested, and it works).
Solution:
Find the include/typelink.class.php file.
Find the method below.
The code is as follows:
//获得某类目的链接列表 如:类目一>>类目二>> 这样的形式 //islink 表示返回的列表是否带连接 function GetPositionLink($islink=true) { $indexpage = "<a href='".$this->indexUrl."'>".$this->indexName."</a>"; if($this->valuePosition!="" && $islink) { return $this->valuePosition; } else if($this->valuePositionName!="" && !$islink) { return $this->valuePositionName; } else if($this->TypeID==0) { if($islink) { return $indexpage; } else { return "没指定分类!"; } } else { if($islink) { $this->valuePosition = $this->GetOneTypeLink($this->TypeInfos); if($this->TypeInfos['reid']!=0) { //调用递归逻辑 $this->LogicGetPosition($this->TypeInfos['reid'],true); } $this->valuePosition = $indexpage.$this->SplitSymbol.$this->valuePosition; return $this->valuePosition.$this->SplitSymbol; //需要修改这里..... } else { $this->valuePositionName = $this->TypeInfos['typename']; if($this->TypeInfos['reid']!=0) { //调用递归逻辑 $this->LogicGetPosition($this->TypeInfos['reid'],false); } return $this->valuePositionName; } } }
Change the above line that needs to be modified to this: return $this->valuePosition;
5. The final template call {dede:field name='position'/}. The final rendering is as follows:
The above is the detailed content of How to remove the last greater than sign in dede:field name=position. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.