名称: page_data($key='')
功能: 按单页面id或自定义名称读取页面数据
代码示例:
<article> <h2> {$page_data['title']} <a href="{$page_data['article_url']}" class="permalink" title="{$page_data['title']}">∞</a> </h2> <div class="post-content">{$page_data['content']}<p> </p></div> </article>
数据格式打印:
Array ( [id] => 1 [category] => ECMS服务列表 [filename] => service [parent_id] => 0 [page_name] => service [title] => ECMS服务列表 [content] => ... [keywords] => ECMS服务项目 [description] => ... [sort] => 0 [pv] => 0 [category_url] => /1-page.html )