VPS参考测评推荐
专注分享VPS主机优惠信息
衡天云优惠活动
华纳云最新优惠促销活动
jtti最新优惠促销活动

如何制作网站地图(创建网站群组的帝国CMS方法)

locvps
主机参考:VPS测评参考推荐/专注分享VPS服务器优惠信息!若您是商家可以在本站进行投稿,查看详情!此外我们还提供软文收录、PayPal代付、广告赞助等服务,查看详情!
我们发布的部分优惠活动文章可能存在时效性,购买时建议在本站搜索商家名称可查看相关文章充分了解该商家!若非中文页面可使用Edge浏览器同步翻译!PayPal代付/收录合作

如何制作网站地图(创建网站群组的帝国CMS方法)

帝国cms如何制作一个网站网站地图?

添加自定义页面、文件名和存储目录:../../../sitemap/sitemap.xml

代码如下:

& lt?= & amp#39;& lt?xml版本= & quot1.0 & quot编码= & quotut F-8 & quot;?& gt& amp#39;?& gt& lturlset xmlns = & quothttp://www.sitemaps.org/schemas/sitemap/0.9" & gt;& lturl & gt& ltloc & gthttps://www.xx.net【!--news . URL --】& lt;/loc & gt;& ltlastmod & gt& lt?=日期(& quoty-M-d & quot;);?& gt& lt/lastmod & gt;& ltchangefreq & gt每日& lt/change freq & gt;& lt优先级& gt1.000 & lt/优先级& gt& lt/URL & gt;loop = { & amp#39;从【!db.pre!】enewsclass其中bclassid=0且showclass=0且(classid & lt& gt52和classid & lt& gt24)由myorder & amp#39;,0,24,0 }】& lt;?phpif(empty empty($ bqr【wburl】)){ $ sc curl = $ public _ r【news URL】。$ bqr【class path】;} else { $ sc curl = $ bqr【wburl】;}?& gt& lturl & gt& ltloc & gthttps://www . xx . net & lt;?=$sccurl?& gt/& lt;/loc & gt;& lt优先级& gt0.6000 & lt/优先级& gt& lt/URL & gt;【/e:loop】【list show class】& amp;#39;0 & amp#39;,25,1,0【/list show class】模板后跟【e:loop = { & quot;select * from【!db.pre!】ecms _ news order by news time desc & quot;,0,24,0 }】& lt;url & gt& ltloc & gthttps://www . xx . net & lt;?= $ bqsr【title URL】?& gt& lt/loc & gt;& ltlastmod & gt& lt?=日期(& amp#39;y-M-d & amp;#39;,$ bqr【news time】)?& gt& lt/lastmod & gt;& ltchangefreq & gt每日& lt/change freq & gt;& lt优先级& gt0.8000 & lt/优先级& gt& lt/URL & gt;【/e:loop】【e:loop = { & quot;select * from【!db.pre!】ecms _ desc新闻时间商店订单& quot,0,24,0 }】& lt;url & gt& ltloc & gthttps://www . xx . net & lt;?= $ bqsr【title URL】?& gt& lt/loc & gt;& ltlastmod & gt& lt?=日期(& amp#39;y-M-d & amp;#39;,$ bqr【news time】)?& gt& lt/lastmod & gt;& ltchangefreq & gt每日& lt/change freq & gt;& lt优先级& gt0.8000 & lt/优先级& gt& lt/URL & gt;【/e:loop】【e:loop = { & quot;select * from【!db.pre!】ecms _ movie order by新闻时间& quot,0,24,0 }】& lt;url & gt& ltloc & gthttps://www . xx . net & lt;?= $ bqsr【title URL】?& gt& lt/loc & gt;& ltlastmod & gt& lt?=日期(& amp#39;y-M-d & amp;#39;,$ bqr【news time】)?& gt& lt/lastmod & gt;& ltchangefreq & gt每日& lt/change freq & gt;& lt优先级& gt0.8000 & lt/优先级& gt& lt/URL & gt;【/e:loop】【e:loop = { & quot;select * from【!db.pre!】ecms _嘉宝订单由DESC新闻时间& quot,0,24,0 }】& lt;url & gt& ltloc & gthttps://www . xx . net & lt;?= $ bqsr【title URL】?& gt& lt/loc & gt;& ltlastmod & gt& lt?=日期(& amp#39;y-M-d & amp;#39;,$ bqr【news time】)?& gt& lt/lastmod & gt;& ltchangefreq & gt每日& lt/change freq & gt;& lt优先级& gt0.8000 & lt/优先级& gt& lt/URL & gt;【/e:loop】【e:loop = { & quot;select * from【!db.pre!】ecms _下载订单按DESC新闻时间& quot,0,24,0 }】& lt;url & gt& ltloc & gthttps://www . xx . net & lt;?= $ bqsr【title URL】?& gt& lt/loc & gt;& ltlastmod & gt& lt?=日期(& amp#39;y-M-d & amp;#39;,$ bqr【news time】)?& gt& lt/lastmod & gt;& ltchangefreq & gt每日& lt/change freq & gt;& lt优先级& gt0.8000 & lt/优先级& gt& lt/URL & gt;【/e:loop】& lt;/urlset & gt;圆形列列表的标签模板:

代码如下:

【list show class】& amp;#39;0 & amp#39;,25,1,0【/list show class】【!--empire news . listemp --】& lt;!--list . var 1--& gt;[!--empire news . listemp --】& lt;url & gt& ltloc & gthttps://www.xx.net【!--class URL --】& lt;/loc & gt;& lt优先级& gt0.6000 & lt/优先级& gt& lt/URL & gt;

这几篇文章你可能也喜欢:

本文由主机参考刊发,转载请注明:如何制作网站地图(创建网站群组的帝国CMS方法) https://zhujicankao.com/109823.html

【腾讯云】领8888元采购礼包,抢爆款云服务器 每月 9元起,个人开发者加享折上折!
打赏
转载请注明原文链接:主机参考 » 如何制作网站地图(创建网站群组的帝国CMS方法)
主机参考仅做资料收集,不对商家任何信息及交易做信用担保,购买前请注意风险,有交易纠纷请自行解决!请查阅:特别声明

评论 抢沙发

评论前必须登录!