{"id":5106,"date":"2022-03-24T22:10:15","date_gmt":"2022-03-24T14:10:15","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=5106"},"modified":"2022-04-21T11:33:06","modified_gmt":"2022-04-21T03:33:06","slug":"%e7%bb%87%e6%a2%a6%e5%a4%9a%e7%ba%a7%e8%8f%9c%e5%8d%95%e6%97%b6%e5%bd%93%e5%89%8d%e6%a0%8f%e7%9b%ae%e9%ab%98%e4%ba%ae%e5%8f%8a%e9%a6%96%e9%a1%b5%e9%ab%98%e4%ba%ae%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/5106.html","title":{"rendered":"\u7ec7\u68a6\u591a\u7ea7\u83dc\u5355\u65f6\u5f53\u524d\u680f\u76ee\u9ad8\u4eae\u53ca\u9996\u9875\u9ad8\u4eae\u4ee3\u7801"},"content":{"rendered":"

\u6211\u4eec\u5728\u6d4f\u89c8\u7f51\u7ad9\u65f6\uff0c\u5f53\u524d\u5728\u54ea\u4e2a\u680f\u76ee\uff0c\u90a3\u4e2a\u680f\u76ee\u83dc\u5355\u80cc\u666f\u5c31\u9ad8\u4eae\uff0c\u9996\u9875\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u3002<\/p>\n

\u9996\u9875\u9ad8\u4eae\u4ee3\u7801\u5224\u65ad<\/h2>\n

\u6b63\u5e38\u65f6\u5019\u6211\u4eec\u9996\u9875\u4e00\u822c\u662f\u8fd9\u6837\u7684\u3002<\/p>\n

 <li><a href=\"\/\" target=\"_blank\">\u9996\u9875<\/a><\/li>\r\n<\/code><\/pre>\n

\u663e\u793a\u6548\u679c<\/p>\n

\"\"<\/a><\/p>\n

\u5728A\u6807\u7b7e\u91cc\u9762\u52a0\u4e0a\u4e0b\u9762\u4ee3\u7801\u5373\u53ef<\/p>\n

{dede:field name=typeid runphp=yes}(@me=='')? @me=' class=\"current\"':@me='';{\/dede:field}\r\n<\/code><\/pre>\n

\u52a0\u5b8c\u540e\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n

<li><a href=\"\/\" {dede:field name=typeid runphp=yes}(@me=='')? @me=' class=\"current\"':@me='';{\/dede:field} target=\"_blank\">\u9996\u9875<\/a><\/li><\/code><\/pre>\n

\u5f53\u6253\u5f00\u9996\u9875\u65f6\uff0c\u5b83\u4f1a\u81ea\u52a8\u7ed9\u9996\u9875\u52a0\u4e0a\u80cc\u666f\u8272\uff0c\u5f53\u7136\u53ef\u4ee5\u81ea\u5b9a\u6837\u5f0f\uff0c\u6bd4\u5982\u52a0\u5927\u5b57\u4f53\uff0c\u52a0\u4e0a\u8fb9\u6846\uff0c\u5b57\u4f53\u53d8\u8272\u7b49\uff0c\u663e\u793a\u6548\u679c\uff0ccurrent\u662f\u4f60\u7684\u6837\u5f0f\u540d\u79f0\u3002<\/p>\n

\u6700\u7ec8\u6548\u679c\uff1a<\/p>\n

\"\"<\/a><\/p>\n

\u7ec7\u68a6channelartlist\u591a\u7ea7\u680f\u76ee\u9ad8\u4eae<\/h2>\n

\u7ec7\u68a6\u591a\u7ea7\u83dc\u5355\u7684\u9ad8\u4eae\u4ee3\u7801\uff0c\u5728A\u6807\u7b7e\u91cc\u9762\u52a0\u5165\u4e0b\u9762\u4ee3\u7801\u5373\u53ef<\/p>\n

class=\"{dede:field.currentstyle\/}\"\r\n<\/code><\/pre>\n

\u53c2\u8003\u4ee3\u7801\uff1a<\/p>\n

<ul class=\"level0\">\r\n          <li><a href=\"\/\" {dede:field name=typeid runphp=yes}(@me=='')? @me=' class=\"current\"':@me='';{\/dede:field} target=\"_blank\">\u9996\u9875<\/a><\/li>\r\n          {dede:channelartlist typeid=top row=10 currentstyle='current'}\r\n          <li class=\"imyeah\"><a class=\"{dede:field.currentstyle\/}\" href=\"{dede:field name=\"typeurl\"\/}\" target=\"_blank\" title=\"{dede:field name=\"typename\"\/}\">{dede:field name=\"typename\"\/}<\/a>\r\n\t\t\t  {dede:channel type='son' noself='yes'}\r\n\t\t\t  <ul class=\"level1\">\r\n\t\t\t      <li><a href=\"[field:typeurl\/]\" title=\"[field:typename\/]\" target=\"_blank\">[field:typename\/]<\/a><\/li>\r\n\t\t\t  <\/ul>\r\n\t\t\t  {\/dede:channel}<\/li>\r\n          {\/dede:channelartlist}\r\n        <\/ul><\/code><\/pre>\n

 <\/p>\n

\u8fd9\u6837\uff0c\u5f53\u6253\u5f00\u67d0\u4e2a\u680f\u76ee\u65f6\uff0c\u5f53\u524d\u680f\u76ee\u7684\u83dc\u5355\u4f1a\u81ea\u52a8\u9ad8\u4eae\uff0c\u5c31\u662f\u4e0b\u9762\u6709\u5b50\u83dc\u5355\u65f6\uff0c\u5f53\u524d\u7684\u9876\u7ea7\u83dc\u5355\u4e5f\u662f\u9ad8\u4eae\u3002<\/p>\n

\"\"<\/a><\/p>\n

 <\/p>\n

\u5982\u679c\u4f60\u53ea\u6709\u4e00\u7ea7\u680f\u76ee\uff0c\u6ca1\u6709\u4e8c\u7ea7\u680f\u76ee\uff0c\u90a3\u4e48\u5c31\u7528\u4e0b\u9762\u9ad8\u4eae\u4ee3\u7801\uff1a<\/p>\n

{dede:channel type='top' currentstyle=\"<li><a class='current' href='~typelink~' ~rel~ title='~typename~' target='_blank'>~typename~<\/a><\/li>\"}\r\n<li><a href=\"[field:typeurl\/]\" title=\"[field:typename\/]\">[field:typename\/]<\/a><\/li>\r\n{\/dede:channel}\r\n<\/code><\/pre>\n

 <\/p>\n

\u6839\u636e\u81ea\u5df1\u7684\u9700\u8981\u4fee\u6539\u5220\u51cf\u3002<\/p>\n

\u66f4\u591a\u7ec7\u68a6\u6807\u7b7e\u4ee3\u7801\uff0c\u8bf7\u67e5\u770b<\/p>\n

\u7ec7\u68a6DedeCms\u4eff\u7ad9\u5e38\u7528\u6a21\u677f\u6807\u7b7e\u5927\u5168<\/a><\/h1>\n

 <\/p>\n

\u6211\u8fd9\u662f\u4f7f\u7528\u7684\u7ec7\u68a6\u662f\u4f18\u5316\u7cbe\u7b80\u8fc7\u7684\u7a0b\u5e8f\uff0c\u5982\u679c\u4f60\u53d1\u73b0\u6dfb\u52a0\u4ee3\u7801\u7684\u4e0d\u8d77\u4f5c\u7528\u3002\u8bf7\u5c1d\u8bd5\u6309\u4e0b\u9762\u65b9\u6cd5\u4fee\u6539\u4ee3\u7801\uff0c\u5982\u679c\u53d1\u73b0\u4ee3\u7801\u4e00\u6837\uff0c\u5c31\u4e0d\u7528\u4fee\u6539\u3002<\/p>\n

\u6253\u5f00 \/include\/taglib\/channelartlist.lib.php \u627e\u5230<\/p>\n

$pv->Fields['typeurl'] = GetOneTypeUrlA($typeids[$i]);\r\n<\/code><\/pre>\n

\u5927\u7ea6\u572893\u884c\uff0c\u5728\u5b83\u4e0b\u9762\u6dfb\u52a0<\/p>\n

if($typeids[$i]['id'] == $refObj->TypeLink->TypeInfos['id'] || $typeids[$i]['id'] == $refObj->TypeLink->TypeInfos['reid'] || $typeids[$i]['id'] == $refObj->TypeLink->TypeInfos['topid'] || $typeids[$i]['id'] == GetTopid($refObj->TypeLink->TypeInfos['id']) )\r\n{\r\n\t$pv->Fields['currentstyle'] = $currentstyle ? $currentstyle : 'current';\r\n}\r\nelse\r\n{\r\n\t$pv->Fields['currentstyle'] = '';\r\n}\r\n<\/code><\/pre>\n

 <\/p>\n

\u5b9e\u6d4b\u6709\u6548\u3002<\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n","protected":false},"excerpt":{"rendered":"

\u6211\u4eec\u5728\u6d4f\u89c8\u7f51\u7ad9\u65f6\uff0c\u5f53\u524d\u5728\u54ea\u4e2a\u680f\u76ee\uff0c\u90a3\u4e2a\u680f\u76ee\u83dc\u5355\u80cc\u666f\u5c31\u9ad8\u4eae\uff0c\u9996\u9875\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u3002 \u9996\u9875\u9ad8\u4eae\u4ee3\u7801\u5224\u65ad \u6b63\u5e38\u65f6\u5019\u6211\u4eec\u9996\u9875 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1634,1633],"class_list":["post-5106","post","type-post","status-publish","format-standard","hentry","category-web","tag-1634","tag-1633"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/5106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=5106"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/5106\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=5106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=5106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=5106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}