{"id":29949,"date":"2024-11-25T17:50:05","date_gmt":"2024-11-25T09:50:05","guid":{"rendered":"https:\/\/fwq.ai\/blog\/29949\/"},"modified":"2024-11-25T17:50:05","modified_gmt":"2024-11-25T09:50:05","slug":"dedecms%e7%bb%87%e6%a2%a6%e6%a8%a1%e6%9d%bf%e6%80%8e%e4%b9%88%e5%ae%9e%e7%8e%b0%e5%9b%be%e9%9b%86%e5%8d%95%e5%87%bb%e5%9b%be%e7%89%87%e7%bf%bb%e9%a1%b5","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/29949\/","title":{"rendered":"DEDECMS\u7ec7\u68a6\u6a21\u677f\u600e\u4e48\u5b9e\u73b0\u56fe\u96c6\u5355\u51fb\u56fe\u7247\u7ffb\u9875"},"content":{"rendered":"<p style=\"text-align: center\"><strong><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/5de46a5f07cf0777.jpg\" class=\"aligncenter\" title=\"DEDECMS\u7ec7\u68a6\u6a21\u677f\u600e\u4e48\u5b9e\u73b0\u56fe\u96c6\u5355\u51fb\u56fe\u7247\u7ffb\u9875\u63d2\u56fe\" alt=\"DEDECMS\u7ec7\u68a6\u6a21\u677f\u600e\u4e48\u5b9e\u73b0\u56fe\u96c6\u5355\u51fb\u56fe\u7247\u7ffb\u9875\u63d2\u56fe\" \/><\/strong><\/p>\n<p><strong>\u7ec7\u68a6\u6a21\u677f\u600e\u4e48\u5b9e\u73b0\u56fe\u96c6\u5355\u51fb\u56fe\u7247\u7ffb\u9875\uff1f<\/strong><\/p>\n<p>1\u3001\u4e3a\u4e86\u5b9e\u73b0\u8fd9\u4e2a\u529f\u80fd\uff0c\u6211\u4eec\u9996\u5148\u9700\u8981\u83b7\u5f97\u56fe\u7247\u9875\u9762\u7684\u5f53\u524d\u9875\u7801\u548c\u603b\u9875\u7801<\/p>\n<p>\u7f16\u8f91include\/inc_archives_view.php\u6587\u4ef6<\/p>\n<p>\u63a8\u8350\u5b66\u4e60\uff1a<\/p>\n<p>\uff081\uff09\u627e\u5230function ParseDMFields\uff0c\u4fee\u6539\u4e3a\uff1a<\/p>\n<pre>function&nbsp;ParseDMFields($pageNo,$ismake=1)&nbsp;\n{&nbsp;\n$this-&amp;gt;NowPage&nbsp;=&nbsp;$pageNo;&nbsp;\n\/\/\u83b7\u5f97\u5f53\u524d\u9875\u9762\u7f16\u53f7&nbsp;\n$this-&amp;gt;Fields['cpagenum']&nbsp;=&nbsp;$this-&amp;gt;NowPage;&nbsp;\nif($this-&amp;gt;SplitPageField!=\"\"&nbsp;&amp;amp;&amp;amp;&nbsp;\nisset($this-&amp;gt;Fields[$this-&amp;gt;SplitPageField]))&nbsp;\n{&nbsp;\n$this-&amp;gt;Fields[$this-&amp;gt;SplitPageField]&nbsp;=&nbsp;$this-&amp;gt;SplitFields[$pageNo&nbsp;-&nbsp;1];&nbsp;\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6ce8\u610f\u589e\u52a0\u4e86\u5982\u4e0b\u4ee3\u7801\u7528\u6765\u83b7\u5f97\u5f53\u524d\u7684\u9875\u7801:<\/p>\n<pre>$this-&amp;gt;Fields['cpagenum']&nbsp;=&nbsp;$this-&amp;gt;NowPage;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\uff082\uff09\u627e\u5230function __construct\u6784\u9020\u51fd\u6570\uff0c\u4fee\u6539\u4e3a\uff1a<\/p>\n<pre>$this-&amp;gt;TotalPage&nbsp;=&nbsp;count($this-&amp;gt;SplitFields);&nbsp;\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\/\/\u83b7\u5f97\u5f53\u524d\u9875\u9762\u603b\u6570&nbsp;<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fDEDECMS\u7ec7\u68a6\u6a21\u677f\u600e\u4e48\u5b9e\u73b0\u56fe\u96c6\u5355\u51fb\u56fe\u7247\u7ffb\u9875\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7ec7\u68a6\u6a21\u677f\u600e\u4e48\u5b9e\u73b0\u56fe\u96c6\u5355\u51fb\u56fe\u7247\u7ffb\u9875\uff1f 1\u3001\u4e3a\u4e86\u5b9e\u73b0\u8fd9\u4e2a\u529f\u80fd\uff0c\u6211\u4eec\u9996\u5148\u9700\u8981\u83b7\u5f97\u56fe\u7247\u9875\u9762\u7684\u5f53\u524d\u9875\u7801\u548c\u603b\u9875\u7801 \u7f16\u8f91include\/inc_archives_view.php\u6587\u4ef6 \u63a8\u8350\u5b66\u4e60\uff1a \uff081\uff09\u627e\u5230function ParseDMFields\uff0c\u4fee\u6539\u4e3a\uff1a function&nbsp;ParseDMFields($pageNo,$ismake=1)&nbsp; {&nbsp; $this-&amp;gt;NowPage&nbsp;=&nbsp;$pageNo;&nbsp; \/\/\u83b7\u5f97\u5f53\u524d\u9875\u9762\u7f16\u53f7&nbsp; $this-&amp;gt;Fields[&#8216;cpagenum&#8217;]&nbsp;=&nbsp;$this-&amp;gt;NowPage;&nbsp; if($this-&amp;gt;SplitPageField!=&#8221;&#8221;&nbsp;&amp;amp;&amp;amp;&nbsp; isset($this-&amp;gt;Fields[$this-&amp;gt;SplitPageField]))&nbsp; {&nbsp; $this-&amp;gt;Fields[$this-&amp;gt;SplitPageField]&nbsp;=&nbsp;$this-&amp;gt;SplitFields[$pageNo&nbsp;&#8211;&nbsp;1];&nbsp; } \u767b\u5f55\u540e\u590d\u5236 \u6ce8\u610f\u589e\u52a0\u4e86\u5982\u4e0b\u4ee3\u7801\u7528\u6765\u83b7\u5f97\u5f53\u524d\u7684\u9875\u7801: $this-&amp;gt;Fields[&#8216;cpagenum&#8217;]&nbsp;=&nbsp;$this-&amp;gt;NowPage; \u767b\u5f55\u540e\u590d\u5236 \uff082\uff09\u627e\u5230function __construct\u6784\u9020\u51fd\u6570\uff0c\u4fee\u6539\u4e3a\uff1a $this-&amp;gt;TotalPage&nbsp;=&nbsp;count($this-&amp;gt;SplitFields);&nbsp; } \u767b\u5f55\u540e\u590d\u5236 \/\/\u83b7\u5f97\u5f53\u524d\u9875\u9762\u603b\u6570&nbsp; \u4ee5\u4e0a\u5c31\u662fDEDECMS\u7ec7\u68a6\u6a21\u677f\u600e\u4e48\u5b9e\u73b0\u56fe\u96c6\u5355\u51fb\u56fe\u7247\u7ffb\u9875\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-29949","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29949","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=29949"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29949\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=29949"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=29949"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=29949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}