This article describes how to create a sitemap for the Imperial CMS website with examples. Share it with everyone for your reference. The specific implementation method is as follows:
Add a custom page, file name and storage directory: ../../sitemap/sitemap.xml
The code is as follows:
=''?>[e:loop={'select classid,classname,classpath,wburl from [!db.pre!]enewsclass where bclassid=0 and showclass=0 and (classid<>52 and classid<>24) order by myorder',0,24,0}] https://www.jb51.net[!--news.url--] =date("Y-m-d");?> daily 1.000 [/e:loop] [listshowclass]'0',25,1,0[/listshowclass] 模板在后面 [e:loop={"select * from [!db.pre!]ecms_news order by newstime DESC",0,24,0}] https://www.jb51.net=$sccurl?>/ 0.6000 [/e:loop] [e:loop={"select * from [!db.pre!]ecms_shop order by newstime DESC",0,24,0}] https://www.jb51.net=$bqsr[titleurl]?> =date('Y-m-d',$bqr[newstime])?> daily 0.8000 [/e:loop] [e:loop={"select * from [!db.pre!]ecms_movie order by newstime DESC",0,24,0}] https://www.jb51.net=$bqsr[titleurl]?> =date('Y-m-d',$bqr[newstime])?> daily 0.8000 [/e:loop] [e:loop={"select * from [!db.pre!]ecms_baojia order by newstime DESC",0,24,0}] https://www.jb51.net=$bqsr[titleurl]?> =date('Y-m-d',$bqr[newstime])?> daily 0.8000 [/e:loop] [e:loop={"select * from [!db.pre!]ecms_download order by newstime DESC",0,24,0}] https://www.jb51.net=$bqsr[titleurl]?> =date('Y-m-d',$bqr[newstime])?> daily 0.8000 [/e:loop] https://www.jb51.net=$bqsr[titleurl]?> =date('Y-m-d',$bqr[newstime])?> daily 0.8000
Recommended to study "Empirecms Tutorial"
Label template for loop column list:
The code is as follows:
[listshowclass]'0',25,1,0[/listshowclass] [!--empirenews.listtemp--] [!--empirenews.listtemp--]https://www.jb51.net[!--classurl--] 0.6000
I hope this article will be helpful to everyone The Empire CMS website builder helps.
The above is the detailed content of Imperial CMS website sitemap creation method. For more information, please follow other related articles on the PHP Chinese website!