Multiple city main stations show first-level cities, and sub-stations show second-level cities label adjustment method
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: