Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does Imperial cms judge whether the output subtitle is the original title or not?

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article is about how Imperial cms determines whether the output subtitle is the original title or not. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

In many cases, for the sake of the interface or publicity effect, the title of the article page or other page needs to be changed, so you need to use the subtitle as the title. The powerful Imperial cms must also have subtitles, and there are subtitles in sub-pages such as article pages and column pages.

However, in most cases, we do not need to use subheadings. If we set subheadings one by one, it will waste a lot of valuable time. At this time, we will consider how to output and display the original title when the subtitle is empty.

Most of the people searched on the Internet have only one way to display the original title when the subtitle is empty, that is, the smart tag is used in the body of the page. The code is as follows:

The code is as follows:

It should be noted that this code needs to be used in the smart tag, so it can only appear in Chinese. If you want to display the title in the title tag, it is not allowed. After testing, the following code can output and display the original title in the title tag when the subtitle is empty:

The code is as follows:

_ [!-- class.name--] Thank you for reading! About Imperial cms how to judge the output subtitle or the original title is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report