在織夢DEDECMS中實現(xiàn)無覓相關(guān)文章功能,DEDE技術(shù)
導讀:DEDE技術(shù)DEDE技術(shù)無覓智能相關(guān)文章服務(wù)是無覓網(wǎng)面向網(wǎng)站用戶推出的一項智能云端服務(wù),旨在提升網(wǎng)站相關(guān)文章的轉(zhuǎn)化率,幫助讀者發(fā)現(xiàn)網(wǎng)站的價值信息。它依托無覓精準的內(nèi)容分析和推薦算法,系織夢模板織夢網(wǎng)站模板。
無覓智能相關(guān)文章服務(wù)是無覓網(wǎng)面向網(wǎng)站用戶推出的一項智能云端服務(wù),旨在提升網(wǎng)站相關(guān)文章的轉(zhuǎn)化率,幫助讀者發(fā)現(xiàn)網(wǎng)站的價值信息。它依托無覓精準的內(nèi)容分析和推薦算法,系統(tǒng)分析文章內(nèi)容、標簽、用戶行為、時間等參數(shù),實時生成關(guān)聯(lián)推薦結(jié)果,并在當前文章底部進行圖文展示,能夠給網(wǎng)站帶來快速的流量增長,也為用戶提供流暢的閱讀體驗。
無覓相關(guān)文章默認展示樣式:
DEDECMS用戶可以通過在模板文件中添加代碼而定方式來使用無覓相關(guān)文章功能。以下代碼來自無覓官方網(wǎng)站。
1、編輯服務(wù)器上的/include/arc.archives.class.php文件,在$this->Fields = $this->dsql->GetOne($query);一行下插入以下代碼:
$this->Fields['arcurl'] = GetFileUrl(
$this->ArcID, $this->Fields["typeid"], $this->Fields["senddate"],
$this->Fields["title"], $this->Fields["ismake"],
$this->Fields["arcrank"], $this->TypeLink->TypeInfos['namerule'],
$this->TypeLink->TypeInfos['typedir'], $this->Fields["money"],
$this->Fields['filename'], $this->TypeLink->TypeInfdede5.7模板os['moresite'],
$this->TypeLink->TypeInfos['siteurl'], $this->TypeLink->TypeInfos['sitepath']
);
2、繼續(xù)編輯該文件,找到if($this->ChannelUnit->ChannelInfos['addtable']!='')一行,在其上插入以下代碼:
$this->Fields['wumiipic'] = strpos($this->Fields['litpic'], '/') === 0 ? ($GLOBALS['cfg_basehost'] . $this->Fields['litpic']) : $this->Fields['litpic'];
3、進入后臺管理的&ldquo織夢模板網(wǎng)站;默認模板管理”頁面,分別在下列文件中找到對應代碼的位置:
article_article.htm,article_shop.htm,article_infos.htm以及V5.7版本中的所有隨機文章內(nèi)容頁模板文件中,找到{dede:field.body/}
article_image.htm:
V5.3.1版本中找到<div class="picbox">對應的結(jié)束標簽</div>
V5.7版本中找到<div class="intro">對應的結(jié)束標簽</div>
article_soft.htm中找到<div class="intro">對應的結(jié)束標簽</div>
在以上位置之后添加以下代碼:
<div class="wumii-hook">
<input type="hidden" name="wurl" value="{dede:global.cfg_basehost/}{dede:field.arcurl/}" />
<input type="hidden" name="wtitle" value="{dede:field.title/}" />
<input type="hidden" name="wpic" value="{dede:field.wumiipic/}" />
</div>
<p style="display: none;">
{dede:tag}<a rel="tag">[field:tag /]</a>{/dede:tag}
</p>
<script>
var wumiiSitePrefix = "{dede:global.cfg_basehost/}{dede:global.cfg_indexurl/}/";
</script>
注:如果您的網(wǎng)站設(shè)置了“arclist內(nèi)容啟用絕對網(wǎng)址”為YES,請將上述第二行代碼改為:
<input type="hidden" name="wurl" value="{dede:field.arcurl/}" />
4、在第3步修改的所有模板文件中找到文件末尾的</body>,在其前面添加以下代碼:
<script type="text/javascript">
var wumiiParams = "&num=5&mode=3&pf=DedeCMS_{dede:global.cfg_version/}";
</script>
<script type="text/javascript" id="wumiiRelatedItems" src="http://w夢織模板idget.wumii.com/ext/relatedItemsWidget.htm"></script>
5、在管理后臺更新文檔 HTML。相關(guān)織夢模板織夢網(wǎng)站模板。
關(guān)鍵詞標簽: CMS 標簽 相關(guān)文章
聲明: 本文由我的SEOUC技術(shù)文章主頁發(fā)布于:2023-07-20 ,文章在織夢DEDECMS中實現(xiàn)無覓相關(guān)文章功能,DEDE技術(shù)主要講述相關(guān)文章,標簽,CMS網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請保留鏈接: http://www.bifwcx.com/article/web_31838.html
為你推薦與在織夢DEDECMS中實現(xiàn)無覓相關(guān)文章功能,DEDE技術(shù)相關(guān)的文章
-
DedeCMS站點高級安全策略(Linux篇),織夢教程
(105)人喜歡 2023-07-20 -
織夢DEDECMS中讓近三天發(fā)布的文章顯示紅色
(194)人喜歡 2023-07-20 -
dedecms網(wǎng)站搬家需要的備份的文件,dedecms
(51)人喜歡 2023-07-20 -
織夢(dedecms)導航條dropdown.js的改進(附演示
(98)人喜歡 2023-07-20 -
解決Dedecms生成RSS地圖地址出錯全都多了一
(139)人喜歡 2023-07-20 -
dede調(diào)用指定欄目下相關(guān)文章的實現(xiàn)方法
(123)人喜歡 2023-07-20