In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail how to call the phpcms secondary navigation bar tag, the content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
Phpcms's method of writing secondary navigation bar labels:
Step 1: first, go to the official website to download a phpcms v9 system file, put it in the local running environment and open it.
Step 2: the secondary navigation bar of the list column, there is an example in the default template. If you are not familiar with the call to the template tag, you can imitate the default template first. It should be noted here, because the secondary navigation bar label code of the list column is in the default template header, that is, the header.html file, there are many novices or friends who have not come into contact with phpcms, may spend a long time here to find the list column label code.
Location: d:\ phpStudy\ WWW\ ae\ phpcms\ templates\ default\ content
Step 3: open the header.html file with the development tool and find the secondary navigation bar label in the list column:
{pc:content action= "category" catid= "$top_parentid" num= "15" siteid= "$siteid" order= "listorder ASC"} {loop $data $r} {$r [catname]} | {/ loop} {/ pc}
Step 4: next, find the template of your foreground list column, namely list_news.html. Of course, the file name can be named at will, as long as the name is reasonable. Because it is a news list column, it is named: list_news:
Location: d:\ phpStudy\ WWW\ ae\ phpcms\ templates\ ae\ content
Step 5: open the template list_news.html file of your foreground news list column, and then imitate the nested secondary navigation bar. The navigation bar labels are nested, and it is very easy to operate. You can copy and paste directly:
Step 6: through the above operation, the secondary navigation bar label call of the internal column is successfully realized. In the next experience, Ozawa continues to share how to redevelop to achieve the highlighting effect of the current navigation bar, and continue to pay attention to Ozawa. You can learn more programming development techniques. If you don't understand anything, you can leave a message for Ozawa or contact Ozawa directly. Here is the secondary navigation bar effect we just achieved:
On how to call the phpcms secondary navigation bar tag to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.