久久机这里只有精品,国产69精品一区二区亚洲孕妇,91精品国产综合久久婷婷香蕉,午夜久久久久久电影

最新活動(dòng):電腦PC端+手機(jī)端+微網(wǎng)站+自適應(yīng)網(wǎng)頁(yè)多模板選擇-建站388元起價(jià)?。?!
當(dāng)前位置:主頁(yè) > 網(wǎng)站建設(shè) > dedecms調(diào)用頂級(jí)欄目名稱和URL鏈接,DEDE技術(shù)

dedecms調(diào)用頂級(jí)欄目名稱和URL鏈接,DEDE技術(shù)

時(shí)間:2023-07-18 09:07:18 閱讀: 文章分類: 網(wǎng)站建設(shè) 作者: dede開(kāi)發(fā)者

導(dǎo)讀:DEDE技術(shù)DEDE技術(shù)問(wèn)題: 在2級(jí)欄目頁(yè)面單獨(dú)調(diào)用該欄目的頂級(jí)欄目名稱! 方法思路: 在 {dede:type} a href=[field:typelink /][field:tdede58模板。

dede58模板問(wèn)題:    在2級(jí)欄目頁(yè)面單獨(dú)調(diào)用該欄目的頂級(jí)欄目名稱!    方法思路:    在 {dede:type} <a href="[field:typelink /]">[field:typename /]</a>  {/dede:type} 標(biāo)簽的基礎(chǔ)上進(jìn)行修改。   調(diào)用方法: {dede:type2} <a href="[field:typelink /]">[field:typename /]</a>  {/dede:type2}   新標(biāo)簽放置位置: \include\taglib\type2.lib.php保存為type2.lib.php標(biāo)簽就可以使用   <?php /* vim: set expandtab tabstop=4 shiftwidth=4: */ // +----------------------------------------------------------------------+ // | PHP version 5                                                        | // +織夢(mèng)模板安裝----------------------------------------------------------------------+ // | Copyright (c) 1997-2004 The PHP Group                                | // +----------------------------------------------------------------------+ // | This source file is subject to version 3.0 of the PHP license,       | // | that is bundled with this package in the file LICENSE, and is        | // | available through the world-wide-web at the following url:           | // | http://www.php.net/license/3_0.txt.                                  | // | If you did not receive a copy of the PHP license and are unable to   | // | obtain it through the world-wide-web, please send a note to          | // | license@php.net so we can mail you a copy immediately.               | // +----------------------------------------------------------------------+ // | Authors: Original Author <author@example.com>                        | // |          Your Name <you@example.com>                                 | // +----------------------------------------------------------------------+ // // $Id:$   if (!defined('DEDEINC')) exit('Request Error!'); function lib_type2(&$ctag, &$refObj) {     global $dsql, $envs;     $attlist = 'typeid|0';     FillAttsDefault($ctag->CAttribute->Items, $attlist);     extract($ctag->CAttribute->Items, EXTR_SKIP);     $innertext = trim($ctag->GetInnerText());     if ($typeid == 0) {         $typeid = (isset($refObj->TypeLink->TypeInfos['topid']) ? $refObj->TypeLink->TypeInfos['topid'] : $envs['typeid']); //echo "ssssssssss1".$refObj->TypeLink->TypeInfos['topid']; //echo "ssssssssss2".$envs['typeid']; exit;     } //echo "typeid:".$typeid; exit; //lyy 如果topid==0 就是頂級(jí)分類,取當(dāng)前記錄 if($refObj->TypeLink->TypeInfos['topid']==0){ $typeid=$refObj->TypeLink->TypeInfos['id']; } //echo "typeid:".$typeid; exit;     if (empty($typeid)) return '';  $row = $dsql->GetOne("SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath 織夢(mèng)文章模板;                           FROM `dede_arctype` WHERE id='$typeid'");       if (!is_array($row)) return '';     if (trim($innertext) == '') $innertext = GetSysTemplets("part_type_list.htm");     $dtp = new DedeTagParse();     $dtp->SetNameSpace('field', '[', ']');     $dtp->LoadSource($innertext);     if (!is_array($dtp->CTags)) {         unset($dtp);         return '';     } else { //lyy 以下getTypeUrl($row[topid]錯(cuò)的,換成 $row['id'] echo  $row['id']."sssss";exit;         $row['typelink'] = GetTypeUrl($row['id'], MfTypedir($row['typedir']) , $row['isdefault'], $row['defaultname'], $row['ispart'], $row['namerule2'], $row['siteurl'], $row['sitepath']);   //print_r($row);exit;         foreach ($dtp->CTags as $tagid => $ctag) {             if (isset($row[$ctag->GetName() ])) $dtp->Assign($tagid, $row[$ctag->GetName() ]);         }         $revalue = $dtp->GetResult();         unset($dtp);         return $revalue;     } } ?>   相關(guān)dede58模板。

關(guān)鍵詞標(biāo)簽: 欄目 鏈接 名稱

聲明: 本文由我的SEOUC技術(shù)文章主頁(yè)發(fā)布于:2023-07-18 ,文章dedecms調(diào)用頂級(jí)欄目名稱和URL鏈接,DEDE技術(shù)主要講述名稱,欄目,鏈接網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請(qǐng)保留鏈接: http://www.bifwcx.com/article/web_29324.html

我的IDC 網(wǎng)站建設(shè)技術(shù)SEOUC.COM
專注網(wǎng)站建設(shè),SEO優(yōu)化,小程序設(shè)計(jì)制作搭建開(kāi)發(fā)定制網(wǎng)站等,數(shù)千家網(wǎng)站定制開(kāi)發(fā)案例,網(wǎng)站推廣技術(shù)服務(wù)。
  • 5000+合作客服
  • 8年從業(yè)經(jīng)驗(yàn)
  • 150+覆蓋行業(yè)
  • 最新熱門源碼技術(shù)文章

    主站蜘蛛池模板: 城固县| 中西区| 孟连| 清流县| 诸城市| 彰化县| 青龙| 玛沁县| 河北省| 鹤山市| 梅河口市| 颍上县| 麦盖提县| 大姚县| 巴南区| 乌拉特中旗| 静乐县| 桐庐县| 尼勒克县| 阿拉善右旗| 吉隆县| 灵丘县| 宁阳县| 桓仁| 吉木萨尔县| 宁德市| 宁远县| 阿坝县| 塔城市| 二连浩特市| 沈阳市| 绿春县| 聂拉木县| 安西县| 罗城| 长葛市| 抚顺市| 旺苍县| 乡宁县| 静海县| 永康市|