帝國(guó)CMS網(wǎng)站sitemap制作方法
發(fā)布時(shí)間:2014-12-01 15:25:57 作者:佚名
我要評(píng)論
這篇文章主要為大家介紹了帝國(guó)CMS網(wǎng)站sitemap制作方法,涉及采用靈動(dòng)標(biāo)簽調(diào)用數(shù)據(jù)庫(kù)信息及生成XML文件的方法,是進(jìn)行網(wǎng)站SEO非常實(shí)用的技巧,需要的朋友可以參考下
本文實(shí)例講述了帝國(guó)CMS網(wǎng)站sitemap制作方法。分享給大家供大家參考。具體實(shí)現(xiàn)方法如下:
增加自定義頁(yè)面,文件名及存放目錄:../../sitemap/sitemap.xml
復(fù)制代碼
代碼如下:<?='<?xml version="1.0" encoding="UTF-8"?>'?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://m.fzitv.net[!--news.url--]</loc>
<lastmod><?=date("Y-m-d");?></lastmod>
<changefreq>daily</changefreq>
<priority>1.000</priority>
</url>
[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}]
<?php
if(emptyempty($bqr[wburl]))
{
$sccurl= $public_r[newsurl].$bqr[classpath];
} else {
$sccurl= $bqr[wburl];
}
?>
<url>
<loc>http://m.fzitv.net<?=$sccurl?>/</loc>
<priority>0.6000</priority>
</url>
[/e:loop]
[listshowclass]'0',25,1,0[/listshowclass] 模板在后面
[e:loop={"select * from [!db.pre!]ecms_news order by newstime DESC",0,24,0}]
<url>
<loc>http://m.fzitv.net<?=$bqsr[titleurl]?></loc>
<lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod>
<changefreq>daily</changefreq>
<priority>0.8000</priority>
</url>
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_shop order by newstime DESC",0,24,0}]
<url>
<loc>http://m.fzitv.net<?=$bqsr[titleurl]?></loc>
<lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod>
<changefreq>daily</changefreq>
<priority>0.8000</priority>
</url>
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_movie order by newstime DESC",0,24,0}]
<url>
<loc>http://m.fzitv.net<?=$bqsr[titleurl]?></loc>
<lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod>
<changefreq>daily</changefreq>
<priority>0.8000</priority>
</url>
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_baojia order by newstime DESC",0,24,0}]
<url>
<loc>http://m.fzitv.net<?=$bqsr[titleurl]?></loc>
<lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod>
<changefreq>daily</changefreq>
<priority>0.8000</priority>
</url>
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_download order by newstime DESC",0,24,0}]
<url>
<loc>http://m.fzitv.net<?=$bqsr[titleurl]?></loc>
<lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod>
<changefreq>daily</changefreq>
<priority>0.8000</priority>
</url>
[/e:loop]
</urlset>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://m.fzitv.net[!--news.url--]</loc>
<lastmod><?=date("Y-m-d");?></lastmod>
<changefreq>daily</changefreq>
<priority>1.000</priority>
</url>
[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}]
<?php
if(emptyempty($bqr[wburl]))
{
$sccurl= $public_r[newsurl].$bqr[classpath];
} else {
$sccurl= $bqr[wburl];
}
?>
<url>
<loc>http://m.fzitv.net<?=$sccurl?>/</loc>
<priority>0.6000</priority>
</url>
[/e:loop]
[listshowclass]'0',25,1,0[/listshowclass] 模板在后面
[e:loop={"select * from [!db.pre!]ecms_news order by newstime DESC",0,24,0}]
<url>
<loc>http://m.fzitv.net<?=$bqsr[titleurl]?></loc>
<lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod>
<changefreq>daily</changefreq>
<priority>0.8000</priority>
</url>
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_shop order by newstime DESC",0,24,0}]
<url>
<loc>http://m.fzitv.net<?=$bqsr[titleurl]?></loc>
<lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod>
<changefreq>daily</changefreq>
<priority>0.8000</priority>
</url>
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_movie order by newstime DESC",0,24,0}]
<url>
<loc>http://m.fzitv.net<?=$bqsr[titleurl]?></loc>
<lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod>
<changefreq>daily</changefreq>
<priority>0.8000</priority>
</url>
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_baojia order by newstime DESC",0,24,0}]
<url>
<loc>http://m.fzitv.net<?=$bqsr[titleurl]?></loc>
<lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod>
<changefreq>daily</changefreq>
<priority>0.8000</priority>
</url>
[/e:loop]
[e:loop={"select * from [!db.pre!]ecms_download order by newstime DESC",0,24,0}]
<url>
<loc>http://m.fzitv.net<?=$bqsr[titleurl]?></loc>
<lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod>
<changefreq>daily</changefreq>
<priority>0.8000</priority>
</url>
[/e:loop]
</urlset>
循環(huán)欄目列表的標(biāo)簽?zāi)0?
復(fù)制代碼
代碼如下:[listshowclass]'0',25,1,0[/listshowclass]
[!--empirenews.listtemp--]
<!--list.var1-->
[!--empirenews.listtemp--]
<url>
<loc>http://m.fzitv.net[!--classurl--]</loc>
<priority>0.6000</priority>
</url>
[!--empirenews.listtemp--]
<!--list.var1-->
[!--empirenews.listtemp--]
<url>
<loc>http://m.fzitv.net[!--classurl--]</loc>
<priority>0.6000</priority>
</url>
希望本文所述對(duì)大家的帝國(guó)CMS建站有所幫助。
相關(guān)文章
帝國(guó)CMS生成sitemap實(shí)現(xiàn)代碼分享
這篇文章主要介紹了帝國(guó)CMS生成sitemap實(shí)現(xiàn)代碼分享,可以生成含有首頁(yè)鏈接、欄目頁(yè)鏈接和內(nèi)容頁(yè)鏈接的sitemap文件,需要的朋友可以參考下2014-08-17- 最近用dedecms做了個(gè)網(wǎng)站 找了半天終于知道了一個(gè)簡(jiǎn)單的生成sitemap的方法,好東西不敢獨(dú)享,下面給大家分享一下2009-11-12
- 今天給大家分享的是織夢(mèng)的sitemap路徑修改方法,更方便優(yōu)化。2011-05-20
phpcms v9網(wǎng)站生成sitemap靜態(tài)地圖頁(yè)面操作步驟
網(wǎng)站sitemap靜態(tài)地圖有利于蜘蛛的抓取,對(duì)于seo優(yōu)化來說相當(dāng)重要,不過某些站長(zhǎng)已忽視了它的存在,接下來將介紹下靜態(tài)地圖sitemap的生成方法,感興趣的你可以參考下哈,希2013-03-11帝國(guó)CMS靈動(dòng)標(biāo)簽e:loop的使用方法分享
帝國(guó)CMS靈動(dòng)標(biāo)簽e:loop的使用方法,自定義循環(huán)標(biāo)簽2012-02-13帝國(guó)cms的靈動(dòng)標(biāo)簽判斷欄目ID的方法
帝國(guó)cms的靈動(dòng)標(biāo)簽怎么判斷欄目ID,需要的朋友可以參考下2012-08-20最簡(jiǎn)單的帝國(guó)CMS網(wǎng)站轉(zhuǎn)移方法詳解
這篇文章主要為大家介紹了最簡(jiǎn)單的帝國(guó)CMS網(wǎng)站轉(zhuǎn)移方法,只需要簡(jiǎn)單的8步即可實(shí)現(xiàn)網(wǎng)站的轉(zhuǎn)移,非常簡(jiǎn)單實(shí)用的技巧,需要的朋友可以參考下2014-11-24帝國(guó)CMS實(shí)現(xiàn)搜索結(jié)果顯示頁(yè)關(guān)鍵字高亮的方法
這篇文章主要為大家介紹了帝國(guó)CMS實(shí)現(xiàn)搜索結(jié)果顯示頁(yè)關(guān)鍵字高亮的方法,需要的朋友可以參考下2014-07-10

