亚洲欧美日韩国产四季一区二区三区,亚洲国产精品第一区二区,亚洲av成人片无码网站,亚洲乱码一区av春药高潮,小罗莉极品一线天在线

格展網(wǎng)絡
您現(xiàn)在的位置:主頁 > 網(wǎng)站插件 > 織夢插件 > 織夢城市分站站群插件
織夢城市分站站群插件

織夢城市分站站群插件

  • 所屬行業(yè):織夢CMS
  • 支持版本:dedecms5.7
  • 支持編碼:UTF-8+GBK
  • 插件編號:CJ-1372
  • 插件大?。?b id="target">230 KB
  • 插件售價:
  • 下載對象:

    超級會員

企業(yè)網(wǎng)站建設 收費指導安裝 收費修改模板親測可用 建站交流群 TAG 充值 代理加盟
評價: 熱度: 888 ℃   

立即下載 加入收藏 打賞

取消

感謝您的支持,我會繼續(xù)努力的!

掃碼支持
掃碼打賞,你說多少就多少

打開支付寶掃一掃,即可進行掃碼打賞哦

Powered by 格展網(wǎng)絡,分享從這里開始,精彩與您同在

  • 插件描述
  • 下載記錄
插件信息
ID編號:1372
最后更新:2021-05-30 10:10
  • 插件預覽
  • 插件特色
無需生成任何文件,偽靜態(tài)實現(xiàn)多城市分站
后臺城市管理自由增刪改查,無限級城市分類
無需修改現(xiàn)有模板文件
  • 使用說明
下載插件,解壓。網(wǎng)站后臺-模塊-上傳新模塊,安裝
根據(jù)自己主機web環(huán)境添加偽靜態(tài)規(guī)則
nginx
rewrite ^/areas_([a-z]+)/(.*)/([0-9]+)\.html$ /areas/plus/view.php?aid=$3&area=$1 last;
rewrite ^/areas_([a-z]+)/(.*)/([0-9]+)_([0-9]+)\.html$ /areas/plus/view.php?aid=$2&pageno=$3&area=$1 last;
rewrite ^/areas_([a-z]+)/(.*)/$ /areas/plus/list.php?tid=$2&area=$1 last;
rewrite ^/areas_([a-z]+)/(.*)/list_([0-9]+)_([0-9]+)\.html$ /areas/plus/list.php?tid=$2&PageNo=$4&area=$1 last;
rewrite ^/areas_([a-z]+)/$ /areas/index.php?area=$1 last;
rewrite ^/areas.html$ /areas/index.php last;
apache
RewriteEngine On
RewriteBase /
RewriteRule ^areas_([a-z0-9_\-]+)/(.*)/([0-9]+)\.html$ areas/plus/view\.php?aid=$3&area=$1 [L]
RewriteRule ^areas_([a-z0-9_\-]+)/(.*)/([0-9]+)_([0-9]+)\.html$ areas/plus/view\.php?aid=$2&pageno=$3&area=$1 [L]
RewriteRule ^areas_([a-z0-9_\-]+)/(.*)/$ areas/plus/list\.php?tid=$2&area=$1 [L]
RewriteRule ^areas_([a-z0-9_\-]+)/(.*)/list_([0-9]+)_([0-9]+)\.html$ areas/plus/list\.php?tid=$3&PageNo=$4&area=$1 [L]
RewriteRule ^areas_([a-z0-9_\-]+)/$ areas/index\.php?area=$1 [L]
RewriteRule ^areas\.html$ areas/index\.php [L]
iis7+
<rule name="分站文章頁">
<match url="^areas_([a-z]+)/(.*)/([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="/areas/plus/view.php?aid={R:3}&amp;area={R:1}" appendQueryString="false" />
</rule>
<rule name="分站文章分頁">
<match url="^areas_([a-z]+)/(.*)/([0-9]+)_([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="/areas/plus/view.php?aid={R:2}&amp;pageno={R:3}&amp;area={R:1}" appendQueryString="false" />
</rule>
<rule name="分站欄目頁">
<match url="^areas_([a-z]+)/(.*)/$" ignoreCase="false" />
<action type="Rewrite" url="/areas/plus/list.php?tid={R:2}&amp;area={R:1}" appendQueryString="false" />
</rule>
<rule name="分站欄目分頁">
<match url="^areas_([a-z]+)/(.*)/list_([0-9]+)_([0-9]+).html$" ignoreCase="false" />
<action type="Rewrite" url="/areas/plus/list.php?tid={R:3}&amp;PageNo={R:4}&amp;area={R:1}" appendQueryString="false" />
</rule>
<rule name="分站首頁">
<match url="^areas_([a-z]+)/$" ignoreCase="false" />
<action type="Rewrite" url="/areas/index.php?area={R:1}" appendQueryString="false" />
</rule>
<rule name="分站全國">
<match url="^areas.html$" ignoreCase="false" />
<action type="Rewrite" url="/areas/index.php" appendQueryString="false" />
</rule>
打開/include/arc.archives.class.php
找到
$preRow = $this->dsql->GetOne($query.$pre);
在它下面加入
if(is_array($preRow)) $preRow['title'] = $GLOBALS['cfg_areas_title'] . $preRow['title'];
if(is_array($nextRow)) $nextRow['title'] = $GLOBALS['cfg_areas_title'] . $nextRow['title'];
打開/include/arc.listview.class.php
找到
function Display()
改成
function Display($ismake=0)
繼續(xù)找到
$this->ParseDMFields($this->PageNo,0);
改成
$this->ParseDMFields($this->PageNo,$ismake);
繼續(xù)找到
//處理一些特殊字段
在它上面加入
$row['title'] = $GLOBALS['cfg_areas_title'] . $row['title'];
繼續(xù)找到
$row['litpic'] = $GLOBALS['cfg_cmspath'].'/images/defaultpic.gif';
改成
$row['litpic'] = $GLOBALS['cfg_basehost'].'/images/defaultpic.gif';
打開/include/typelink.class.php
找到
$this->TypeInfos = $this->dsql->GetOne($query);
在它下面加入
$this->TypeInfos['typename'] = $GLOBALS['cfg_areas_title'] . $this->TypeInfos['typename'];
繼續(xù)找到
$tinfos = $this->dsql->GetOne();
在它下面加入
$tinfos['typename'] = $GLOBALS['cfg_areas_title'] . $tinfos['typename'];
打開/include/taglib/arclist.lib.php
找到
//處理一些特殊字段
在它上面加入
$row['title'] = $GLOBALS['cfg_areas_title'] . $row['title'];
打開/include/taglib/channel.lib.php
找到
$row['sonids'] = $row['rel'] = '';
在它上面加入
$row['typename'] = $GLOBALS['cfg_areas_title'] . $row['typename'];
打開/include/taglib/channelartlist.lib.php
找到
$pv->Fields['typeurl'] = GetOneTypeUrlA($typeids[$i]);
在它下面加入
$pv->Fields['typename'] = $GLOBALS['cfg_areas_title'] . $typeids[$i]['typename'];
打開/include/taglib/type.lib.php
找到
$row['typelink'] = $row['typeurl'] = GetOneTypeUrlA($row);
在上面加入
$row['typename'] = $GLOBALS['cfg_areas_title'] . $row['typename'];
在你網(wǎng)站模板里任意地方可以加入調(diào)用輸出你想要的地區(qū)名稱和鏈接
{dede:areas sqlstr="" row="5"}
<dt>
<a href='[field:arcurl/]'>[field:title/]</a>
</dt>
<dd>
[field:sonareas1]
<a href='[field:arcurl/]'>[field:title/]</a>
[field:sonareas2]
<a href='[field:arcurl/]'>[field:title/]</a>
[/field:sonareas2]
[/field:sonareas1]
</dd>
{/dede:areas}
調(diào)用一級地區(qū)
{dede:areas sqlstr="" row="5"}{/dede:areas}
調(diào)用一級和二級地區(qū)
{dede:areas sqlstr="istop = 1" row="5"}
    [field:sonareas1][/field:sonareas1]
{/dede:areas}
調(diào)用一級、二級、三級地區(qū)
{dede:areas sqlstr="istop = 1" row="5"}
    [field:sonareas1]
        [field:sonareas2][/field:sonareas2]
    [/field:sonareas1]
{/dede:areas}
調(diào)用推薦的地區(qū)
sqlstr="istop = 1"
調(diào)用地區(qū)個數(shù)
row="5"
在自己模板文件夾里新建一個areas.htm全國城市模板文件
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>全國城市分站</title>
</head>
<body>
<!--可以引入自己的頭部和尾部-->
<style>
.all_city{clear:both;max-width:1200px;margin:0 auto}
.all_city h2{padding:0;margin:0;font-size:16px;font-weight:700;width:70px;color:#00a0e9;line-height:30px}
.all_city h2 a{text-decoration:none;font-size:16px;font-weight:700;width:70px;color:#222;line-height:30px}
.all_city ul{padding:0;margin:0;list-style:none;float:left;padding-left:20px}
.all_city ul li.all_city_li{clear:both;float:left;line-height:30px}
.all_city ul.all_city_ul li{list-style:none;float:left}
.all_city ul li.all_city_li a,.all_city ul.all_city_ul li a{display:block;float:left;padding-left:10px;color:#222;text-decoration:none;font-size:14px}
</style>
{dede:areas}
<div class="all_city">
    <h2><a href='[field:arcurl/]'>[field:title/]</a></h2>
    <ul>
        [field:sonareas1]
        <li class="all_city_li">
            <a href='[field:arcurl/]'><b>[field:title/]</b></a>
            <ul class="all_city_ul">
                [field:sonareas2]
                <li><a href='[field:arcurl/]'>[field:title/]</a></li>
                [/field:sonareas2]
            </ul>
        </li>
        [/field:sonareas1]
    </ul>
</div>
{/dede:areas}
</body>
</html>
全部完成后,打開 http://你的域名/areas.html  查看全國城市頁面
后臺-系統(tǒng)-系統(tǒng)基本參數(shù)可以開啟和關(guān)閉分站獨立SEO信息
特別說明
如果你主站有城市地區(qū)名的地方,在分站想跟隨分站更換城市名話,可以用這個標簽來
{dede:global.cfg_areas_title runphp=yes}@me = @me ? @me : '包頭';{/dede:global.cfg_areas_title}
主站默認顯示為包頭XXX,分站時顯示當前城市名
主站默認效果如下
分站效果如下
head.htm 頭部模板里的寫法示例

相關(guān)模板插件

X

截屏,微信識別二維碼

微信號:yingzicms

(點擊微信號復制,添加好友)

  打開微信

 
咨詢
QQ在線咨詢

如無回復
請加下面的微信

添加微信客

微信客服
yingzicms