


Two ways to determine whether to output the subtitle or the original title using Empire CMS in one move
Many times, for the sake of interface or publicity effect, the title of the article page or other pages needs to be changed. At this time, it is necessary to use the subtitle as the title. The powerful empire cms must also have a subtitle. There is a subtitle field in sub-pages such as article pages and column pages.
However, in most cases, there is no need to use subtitles. If we set the subtitles one by one, it would be a waste of precious time. At this time, we considered how to set the subtitles as When empty, the output displays the original title.
Recommended to study "Empire cms tutorial"
Most of the online searches found only one way to output and display the original title when the subtitle is empty, which is to use it in the page body The code is as follows:
The code is as follows:
<?=$bqr[ftitle]?$bqr[ftitle]:$bqr[title]?>
It should be noted that this code needs to be used in smart tags, so it can basically only be used in Chinese Appears. If you want to display the title in the title tag, it is not possible. After testing, the following code can output and display the original title when the subtitle is empty in the title tag:
The code is as follows:
<title><?php echo $navinfor['ftitle']?$navinfor['ftitle']:$navinfor['title'] ?>_[!--class.name--]</title>
The above is the detailed content of Two ways to determine whether to output the subtitle or the original title using Empire CMS in one move. 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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

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.

Dreamweaver Mac version
Visual web development tools

Notepad++7.3.1
Easy-to-use and free code editor

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool
