Home > Article > Backend Development > How to call the region name of the purchase and supply information on the destoon homepage, destoon supply information_PHP tutorial
The example in this article mainly implements calling the region name of purchase and supply information on the destoon homepage. This is a more practical technique in destoon development.
The implementation code is as follows:
{loop $tags $k $t} [{area_pos($t[areaid], '/', 1)}]{$t[title]} {/loop}
The code description is as follows:
$t[areaid], '/', 1
The second parameter is the separator between region and sub-region
The third parameter is optional: set to 1 to display only the first-level regional classification; set to 2 to display the second-level regional classification, etc.
But calling it like this doesn’t work at all, and all the supply information is still displayed
Already solvedeee221a3aa70f1daa2c6081db485e7db'' and username='$username'&pagesize=8&order=edittime&width=80&height=80&cols=8&template =thumb-table", -2)}-->