destoon homepage calls the method of region name of purchasing supply information
- 2021-07-16 01:57:59
- OfStack
The example of this paper mainly realizes the regional name of calling the purchase and supply information on the homepage of destoon. This is a practical skill 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 delimiter 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 level 2 regional classification, etc.