自拍亚洲一区欧美另类,亚洲成人影院,亚洲午夜久久久久妓女影院,最近中文字幕高清中文字幕无,亚洲熟妇av一区二区三区漫画

學(xué)習(xí)筆記

精準(zhǔn)傳達(dá) ? 價(jià)值共享

洞悉互聯(lián)網(wǎng)前沿資訊,探尋網(wǎng)站營(yíng)銷規(guī)律

織夢(mèng)文章內(nèi)容頁(yè)使用不同的模板_獨(dú)立內(nèi)容頁(yè)模板

作者:狐靈科技 | 2020-02-22 15:50 |點(diǎn)擊:

織夢(mèng)讓文章內(nèi)容頁(yè)使用不同的模板,不同的模板風(fēng)格

織夢(mèng)內(nèi)容頁(yè)獨(dú)立內(nèi)容模板,可以讓文章不同樣式展示

織夢(mèng)文章內(nèi)容頁(yè)使用不同的模板_獨(dú)立內(nèi)容頁(yè)模板

1、后臺(tái)-系統(tǒng)-SQL命令行工具-執(zhí)行

ALTER TABLE `dede_archives` ADD `tempname` VARCHAR( 40 ) NOT NULL DEFAULT '';

 

2、后臺(tái)文檔發(fā)布模板里添加表單

文章模型的是
 

  • 文章模型的是

    • dede/templets/article_add.htm
    • dede/templets/article_edit.htm

    圖集模型的是

    • dede/templets/album_add.htm
    • dede/templets/album_edit.htm

    軟件模型的是

    • dede/templets/soft_add.htm
    • dede/templets/soft_edit.htm

    商品和自定義模型的是

    • dede/templets/archives_add.htm
    • dede/templets/archives_edit.htm
  • 根據(jù)你自己的模型來(lái)添加表單,搜索自定義文件名
  • 發(fā)布和編輯都是插入如下的代碼
    <script type="text/javascript">
    function SelectTemplets(fname)
    {
    	var posLeft = 200;
    	var posTop = 300;
    	window.open("../include/dialog/select_templets.php?f="+fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left="+posLeft+", top="+posTop);
    }
    </script>
    <tr>
    	<td colspan="2">
    		<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:3px;">
    			<tr> 
    				<td width="90" class="bline" height='24'>&nbsp;自定義模板:</td>
    				<td class="bline"><input type='text' name="tempname" id="tempname" style='width:300px' class='text' value="<?php echo $arcRow['tempname']; ?>" /> <input name='diytemp_bt' type='button' class='inputbut' value='瀏覽...' onClick="SelectTemplets('form1.tempname')" />
    				</td>
    			</tr>
    		</table>
    	</td>
    </tr>

     

    3、后臺(tái)文檔發(fā)布和編輯處理php文件修改

    文章模型的是

    • dede/article_add.php
    • dede/article_edit.php

    圖集模型的是

    • dede/album_add.php
    • dede/album_edit.php

    軟件模型的是

    • dede/soft_add.php
    • dede/soft_edit.php

    商品和自定義模型的是

    • dede/archives_add.php
    • dede/archives_edit.php

    打開(kāi)對(duì)應(yīng)的文檔發(fā)布處理,php文件是 xxx_add.php

    找到

    ,weight

    改成

    ,weight,tempname

    繼續(xù)找到

    ,'$weight'

    改成

    ,'$weight','$tempname'

    文檔編輯處理php文件是 xxx_edit.php

    找到

    weight='$weight'

    改成

    weight='$weight',tempname='$tempname'

     

    4、/include/arc.archives.class.php 找到

    $this->Fields['filename'] = empty($this->Fields['filename'])? '' : $this->Fields['filename'];

    在它下面加入

    $this->Fields['tempname'] = empty($this->Fields['tempname'])? '' : $this->Fields['tempname'];

    繼續(xù)找到

    $cid = $this->ChannelUnit->ChannelInfos['nid'];

    在它下面加入

    $this->Fields['tempname'] = empty($this->Fields['tempname'])? '' : $this->Fields['tempname'];

    繼續(xù)找到

    $filetag = str_replace('{tid}', $tid,$filetag);

    在它下面加入

    if(!empty($this->Fields['tempname'])) $filetag = $this->Fields['tempname'];

    完成

     


如沒(méi)特殊注明,文章均為狐靈科技原創(chuàng),轉(zhuǎn)載請(qǐng)注明?? "織夢(mèng)文章內(nèi)容頁(yè)使用不同的模板_獨(dú)立內(nèi)容頁(yè)模板
多一份免費(fèi)策劃方案,總有益處。

請(qǐng)直接添加技術(shù)總監(jiān)微信聯(lián)系咨詢

網(wǎng)站設(shè)計(jì) 品牌營(yíng)銷

多一份參考,總有益處

聯(lián)系狐靈科技,免費(fèi)獲得專屬《策劃方案》及報(bào)價(jià)

咨詢相關(guān)問(wèn)題或預(yù)約面談,可以通過(guò)以下方式與我們聯(lián)系

業(yè)務(wù)熱線:15082661954 / 大客戶專線:15523356218