<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                [TOC] # `DedeCms` 模板修改為 `NewThink` 模板目錄的步驟 ## 第一步:拷貝程序 1、將 `themes/empty` 目錄復制一份,更改一個名字如 `new` 目錄; 2、將原 `dedecms` 目錄,如 `templets/default` 里邊的文件分別拷貝,如下: * 將 `images`目錄、`js`目錄、`css目錄` 等資源文件拷貝到 `new/Public` 目錄下; * 將 `htm` 文件后綴 都更改為 `html` 文件后綴; * 將 `head.html` `footer.html` `menu.html` 等公共文件拷貝到 `Public`目錄下; * 將首頁 `index.html` 、列表頁 `list_article.html` 、內容頁 `article_article.html` 、 單頁面 `single_article.html` 等文件拷貝到 `new/Portal` 目錄。 ## 第二步:標簽及路徑問題 將 `new/Portal` 目錄下的標簽進行 **批量替換** !具體如下: ### 1、文件改名(其實這一步不是必須,只是為了適應`newthink`默認的模板) * `single_article.html` 更換為 `page.html` * `list_article.html` 更改為 `list.html` * `article_article.html` 更改為 `article.html` * `search.html`不用修改 * `index_article.html` 不用修改 * `list_images.html` 不用修改 ### 2、基本修改 * 將`.htm`更改為`.html` * `{dede:global.cfg_webname/}`更改為`{$site_seo_title} {$site_name}` * `{dede:global.cfg_keywords/}`更改為`{$site_seo_keywords}` * `{dede:global.cfg_description/}`更改為`{$site_seo_description}` * `{dede:global.cfg_powerby/}`更改為`{$site_copyright}` * `{dede:global.cfg_beian/}` 更改為 `{$site_icp}` * `{dede:global.cfg_address/}`更改為`{$site_admin_address}` ### 3、擴展修改 * `{dede:global.cfg_templets_skin/}`更改為`__TMPL__Public` * `{dede:include filename`(注:這里沒有右花括號)更改為`<tc_include file` * `{dede:global.cmspath/}`更換為`{$site_host}` ### 4、鏈接的修改 * `plus/list.php?tid=xxx` 這個需要手動進行更換,這個需要注意一下,原因如下: a. 對于單頁來說,直接更換為`index.php?g=portal&m=page&a=index&id=xxx`,對于后邊的 `ID=xxx`,要根據后臺的ID來看,如下圖: ![](https://box.kancloud.cn/2016-08-31_57c6a62ce7142.png) b. 對于列表頁來說,直接更換為 `index.php?g=portal&m=list&a=index&id=xxx`,對于后邊的 `id=xxx` ,根據分類的ID來看,如下圖: ![](https://box.kancloud.cn/2016-08-31_57c6a62d12ceb.png) c. 對于文章頁來說,直接更換為 `index.php?g=portal&m=article&a=index&id=xxx&cid=yyy`,對于后邊的 `cid=yyy`,看上圖;對于后邊的 `id=xxx` ,根據文章的的ID來看,如下圖: ![](https://box.kancloud.cn/2016-08-31_57c6a62d2a005.png) ### 5、無分頁列表替換 a.`[field:arcurl/]` 更換為 `{:leuu('article/index',array('id'=>$vo['tid']))}` b.`[field:fulltitle/]` 更換為 `{$vo.post_title}` c.`[field:title/]` 更換為 `{$vo.post_title}` d.`[field:pubdate function="MyDate('Y-m-d',@me)" /]` 更換為 `{$vo.post_date}` e.`{dede:arclist row='4' typeid='8'}` 更換為 ``` <php> $tag = 'cid:8;order:listorder asc'; $pagesize ='4'; $content=sp_sql_posts_paged($tag,$pagesize); </php> <foreach name="content['posts']" item="vo"> ``` >雖然有些長,但是是非常不錯的! f.`{/dede:arclist}` 更換為 `</foreach>` ### 6、友情鏈接的修改 直接用 擴展標簽
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看