• customer service QQ:    WeChat: Contact number: 18613993467     

Multiple city main stations show first-level cities, and sub-stations show second-level cities label adjustment method

Suyou Network (10 years of experience), serves tens of thousands of companies, and has fixed transparent quotations.Domain name registration, hosting /One-stop service for server and website source code.A physical company, a professional team, worth choosing!Website building business: corporate website construction, company official website production, foreign trade website construction, website imitation, website copying, imitation site, foreign trade website construction, single-page customer service WeChat【 suyoufuwu】


Sometimes when we call multiple cities, we want to display all first-level cities on the main site, but when we arrive at the branch site, we want to display their second-level cities. If so, we need to write a judgment

{eyou:empty name="$eyou.site.id"}

        {eyou:citysite type="top" loop="10" currentclass="active"} <li><a href="{$field.siteurl}" class="{$field.currentclass}">{$field.name}</a></li> {/eyou:citysite}

        {eyou:else /}

        {eyou:citysite type="sonself" loop="10" currentclass="active"} <li><a href="{$field.siteurl}" class="{$field.currentclass}">{$field.name}</a></li> {/eyou:citysite}

  {/eyou:empty}

The above is the "Multi-city main station displays first-level cities, and sub-stations display the label adjustment method of second-level cities in sub-stations". Thank you very much for reading this article patiently. We will provide you with more information on reference, use or learning and communication.We can also provide you with:Enterprise website construction, website imitation, website copying, imitation site, foreign trade website construction, foreign trade website construction, company official website productionFor services, our company serves customers with the service concept of "integrity, professionalism, pragmatism and innovation".If you need cooperation, please scan the code to consult, and we will serve you sincerely.

TAG Label:

National branch station

National branch station